You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
Python
42 lines
1.1 KiB
Python
FluidUMAP : FluidModelObject {
|
|
|
|
var <>numDimensions, <>numNeighbours, <>minDist, <>iterations, <>learnRate, <>batchSize;
|
|
|
|
*new {|server,numDimensions = 2, numNeighbours = 15, minDist = 0.1, iterations = 200, learnRate = 0.1, batchSize = 50|
|
|
^super.new(server,[numDimensions, numNeighbours, minDist, iterations, learnRate, batchSize])
|
|
.numDimensions_(numDimensions)
|
|
.numNeighbours_(numNeighbours)
|
|
.minDist_(minDist)
|
|
.iterations_(iterations)
|
|
.learnRate_(learnRate)
|
|
.batchSize_(batchSize);
|
|
}
|
|
|
|
prGetParams{
|
|
^[
|
|
this.numDimensions,
|
|
this.numNeighbours,
|
|
this.minDist,
|
|
this.iterations,
|
|
this.learnRate,
|
|
this.batchSize
|
|
]
|
|
}
|
|
|
|
fitTransformMsg{|sourceDataSet, destDataSet|
|
|
^this.prMakeMsg(\fitTransform, id, sourceDataSet.id, destDataSet.id)
|
|
}
|
|
|
|
fitTransform{|sourceDataSet, destDataSet, action|
|
|
actions[\fitTransform] = [nil, action];
|
|
this.prSendMsg(this.fitTransformMsg(sourceDataSet,destDataSet));
|
|
}
|
|
|
|
// not implemented
|
|
cols {|action|}
|
|
read{|filename,action|}
|
|
write{|filename,action|}
|
|
size { |action|}
|
|
|
|
}
|