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.
25 lines
584 B
Python
25 lines
584 B
Python
FluidKNNRegressor : FluidDataClient {
|
|
|
|
*new {|server, numNeighbours = 3, weight = 1|
|
|
^super.new1(server,[\numNeighbours,numNeighbours,\weight,weight]);
|
|
}
|
|
|
|
fit{|sourceDataset, targetDataset, action|
|
|
this.prSendMsg(\fit,
|
|
[sourceDataset.asSymbol, targetDataset.asSymbol],
|
|
action
|
|
);
|
|
}
|
|
|
|
predict{ |sourceDataset, targetDataset,action|
|
|
this.prSendMsg(\predict,
|
|
[sourceDataset.asSymbol, targetDataset.asSymbol],
|
|
action);
|
|
}
|
|
|
|
predictPoint { |buffer, action|
|
|
this.prSendMsg(\predictPoint, [buffer.asUGenInput], action,
|
|
[number(FluidMessageResponse,_,_)]);
|
|
}
|
|
}
|