Skip to content

Commit 705fb80

Browse files
committed
typos
1 parent d754821 commit 705fb80

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/ComponentArrayInterpreter.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
66
Interface for Type that implements
77
- `as_ca(::AbstractArray, interpreter) -> ComponentArray`
8-
- `CompoentArrays.getaxes(interpeter)`
8+
- `ComponentArrays.getaxes(interpreter)`
99
- `Base.length(interpreter) -> Int`
1010
1111
When called on a vector, forwards to `as_ca`.
1212
13-
There is a default implementation for Base.length based on CompoentArrays.getaxes.
13+
There is a default implementation for Base.length based on ComponentArrays.getaxes.
1414
"""
1515
abstract type AbstractComponentArrayInterpreter end
1616

test/test_doubleMM.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ end
8282
xPMg = gdev(xPM)
8383
yg = fy(θvecg, xPMg)
8484
@test cdev(yg) == y_exp'
85-
ygradg = Zygote.gradient(θv -> sum(fy(θv, xPMg)), θvecg)[1] # erros without ";"
85+
ygradg = Zygote.gradient(θv -> sum(fy(θv, xPMg)), θvecg)[1] # errors without ";"
8686
@test ygradg isa CA.ComponentArray
8787
@test CA.getdata(ygradg) isa GPUArraysCore.AbstractGPUArray
8888
ygradgc = HVI.apply_preserve_axes(cdev, ygradg) # can print the cpu version
@@ -117,7 +117,7 @@ end
117117
y_uncg = gdev(y_unc)
118118
costg = fcost(θvecg, xPMg, y_og, y_uncg)
119119
@test costg cost
120-
ygradg = Zygote.gradient(θv -> fcost(θv, xPMg, y_og, y_uncg), θvecg)[1] # erros without ";"
120+
ygradg = Zygote.gradient(θv -> fcost(θv, xPMg, y_og, y_uncg), θvecg)[1] # errors without ";"
121121
@test ygradg isa CA.ComponentArray
122122
@test CA.getdata(ygradg) isa GPUArraysCore.AbstractGPUArray
123123
ygradgc = HVI.apply_preserve_axes(cdev, ygradg) # can print the cpu version
@@ -186,7 +186,6 @@ end
186186
# (xM, xP, y_o, y_unc, i_sites), batchsize = n_site_batch)
187187
train_loader = get_hybridproblem_train_dataloader(prob; scenario)
188188
@assert train_loader.data == (xM, xP, y_o, y_unc, i_sites)
189-
train_lodaer2 = MLUtils.DataLoader(train_loader.data, batchsize = n_site)
190189
pbm_covars = get_hybridproblem_pbmpar_covars(prob; scenario)
191190

192191
#loss_gf = get_loss_gf(g, transM, f, y_global_o, intϕ; gdev = identity)

0 commit comments

Comments
 (0)