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.

19 lines
508 B
Python

FluidKNNClassifier : FluidManipulationClient {
fit{|dataset, labelset, action|
this.pr_sendMsg(\fit,[dataset.asString, labelset.asString], action);
}
predict{ |dataset, labelset, k, action|
this.pr_sendMsg(\predict,
[dataset.asString, labelset.asString, k],
action, [string(FluidMessageResponse,_,_)]
);
}
predictPoint { |buffer, k, action|
this.pr_sendMsg(\predictPoint,
[buffer.asUGenInput, k], action,
[number(FluidMessageResponse,_,_)]
);
}
}