File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -290,11 +290,10 @@ public function probaSample(array $sample) : array
290
290
}
291
291
292
292
/**
293
- * Find the K nearest neighbors to the given sample vector using
294
- * the brute force method.
293
+ * Find the K nearest neighbors to the given sample vector using the brute force method.
295
294
*
296
295
* @param list<string|int|float> $sample
297
- * @return list<list< string|int|float>>
296
+ * @return array{ list<string|int|float>,list<float>}
298
297
*/
299
298
protected function nearest (array $ sample ) : array
300
299
{
Original file line number Diff line number Diff line change @@ -224,11 +224,10 @@ public function predictSample(array $sample)
224
224
}
225
225
226
226
/**
227
- * Find the K nearest neighbors to the given sample vector using
228
- * the brute force method.
227
+ * Find the K nearest neighbors to the given sample vector using the brute force method.
229
228
*
230
229
* @param (string|int|float)[] $sample
231
- * @return array<( string|int|float)[]>
230
+ * @return array{list< string|int|float>,list<float>}
232
231
*/
233
232
protected function nearest (array $ sample ) : array
234
233
{
You can’t perform that action at this time.
0 commit comments