Toggle navigation
Home
org.apache.ignite.ml.math.isolve.LinSysPartitionDataOnHeap to org.apache.ignite.ml.dataset.primitive.data.SimpleLabeledDatasetData
No. of Instances - 2
No. of Commits - 1
No. of Projects - {'ignite'}
Hierarchy/Composition: SIBLING
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Add or Remove Method invocation
ctx.setU(Arrays.copyOf(data.getY(),data.getY().length))
to
ctx.setU(Arrays.copyOf(data.getLabels(),data.getLabels().length))
data.getY()
to
data.getLabels()
data.getX()
to
data.getFeatures()
dataset.computeWithCtx((ctx,data) -> { if (data.getX() == null) return null; int cols=data.getX().length / data.getRows(); BLAS.getInstance().dscal(ctx.getU().length,1 / bnorm,ctx.getU(),1); double[] v=new double[cols]; BLAS.getInstance().dgemv("T",data.getRows(),cols,1.0,data.getX(),Math.max(1,data.getRows()),ctx.getU(),1,0,v,1); return v; } ,(a,b) -> { if (a == null) return b; else if (b == null) return a; else { BLAS.getInstance().daxpy(a.length,1.0,a,1,b,1); return b; } } )
to
dataset.computeWithCtx((ctx,data) -> { if (data.getFeatures() == null) return null; int cols=data.getFeatures().length / data.getRows(); BLAS.getInstance().dscal(ctx.getU().length,1 / bnorm,ctx.getU(),1); double[] v=new double[cols]; BLAS.getInstance().dgemv("T",data.getRows(),cols,1.0,data.getFeatures(),Math.max(1,data.getRows()),ctx.getU(),1,0,v,1); return v; } ,(a,b) -> { if (a == null) return b; else if (b == null) return a; else { BLAS.getInstance().daxpy(a.length,1.0,a,1,b,1); return b; } } )
data.getX()
to
data.getFeatures()