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.
16 lines
477 B
Python
16 lines
477 B
Python
FluidKNN : FluidManipulationClient {
|
|
|
|
fit{|dataset, action|
|
|
this.pr_sendMsg(\fit,[dataset.asString],action);
|
|
}
|
|
|
|
classify{ |buffer, labelset, k, action|
|
|
this.pr_sendMsg(\classify,[buffer.asUGenInput, labelset.asString, k],action,k.collect{string(FluidMessageResponse,_,_)});
|
|
}
|
|
|
|
regress { |buffer,dataset, k, action|
|
|
this.pr_sendMsg(\regress,[buffer.asUGenInput, dataset.asString,k],action,[number(FluidMessageResponse,_,_)]);
|
|
}
|
|
|
|
}
|