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.0 KiB
Python
42 lines
1.0 KiB
Python
FluidUMAP : FluidRTDataClient {
|
|
|
|
*new {|server,numDimensions = 2, numNeighbours = 15, minDist = 0.1, iterations = 200, learnRate = 0.1, batchSize = 50|
|
|
^super.new1(server,[
|
|
\numDimensions,numDimensions,
|
|
\numNeighbours, numNeighbours,
|
|
\minDist, minDist,
|
|
\iterations, iterations,
|
|
\learnRate, learnRate
|
|
])
|
|
}
|
|
|
|
fit{|sourceDataSet, action|
|
|
this.prSendMsg(\fit,
|
|
[sourceDataSet.asSymbol], action);
|
|
}
|
|
|
|
transform{|sourceDataSet, destDataSet, action|
|
|
this.prSendMsg(\transform,
|
|
[sourceDataSet.asSymbol, destDataSet.asSymbol], action);
|
|
}
|
|
|
|
|
|
fitTransform{|sourceDataSet, destDataSet, action|
|
|
this.prSendMsg(\fitTransform,
|
|
[sourceDataSet.asSymbol, destDataSet.asSymbol], action);
|
|
}
|
|
|
|
transformPoint{|sourceBuffer, destBuffer, action|
|
|
sourceBuffer = this.prEncodeBuffer(sourceBuffer);
|
|
destBuffer = this.prEncodeBuffer(destBuffer);
|
|
this.prSendMsg(\transformPoint,[sourceBuffer, destBuffer], action, outputBuffers:[destBuffer]);
|
|
}
|
|
|
|
// not implemented
|
|
cols {|action|}
|
|
read{|filename,action|}
|
|
write{|filename,action|}
|
|
size { |action|}
|
|
|
|
}
|