@@ -44,7 +44,7 @@ class VantageTree implements BinaryTree, Spatial
44
44
/**
45
45
* The distance function to use when computing the distances.
46
46
*
47
- * @var \Rubix\ML\Kernels\Distance\ Distance
47
+ * @var Distance
48
48
*/
49
49
protected $ kernel ;
50
50
@@ -106,7 +106,7 @@ public function bare() : bool
106
106
/**
107
107
* Return the distance kernel used to compute distances.
108
108
*
109
- * @return \Rubix\ML\Kernels\Distance\ Distance
109
+ * @return Distance
110
110
*/
111
111
public function kernel () : Distance
112
112
{
@@ -119,8 +119,8 @@ public function kernel() : Distance
119
119
*
120
120
* @internal
121
121
*
122
- * @param \Rubix\ML\Datasets\ Labeled $dataset
123
- * @throws \Rubix\ML\Exceptions\ InvalidArgumentException
122
+ * @param Labeled $dataset
123
+ * @throws InvalidArgumentException
124
124
*/
125
125
public function grow (Labeled $ dataset ) : void
126
126
{
@@ -169,7 +169,7 @@ public function grow(Labeled $dataset) : void
169
169
*
170
170
* @param (string|int|float)[] $sample
171
171
* @param int $k
172
- * @throws \Rubix\ML\Exceptions\ InvalidArgumentException
172
+ * @throws InvalidArgumentException
173
173
* @return array<array<mixed>>
174
174
*/
175
175
public function nearest (array $ sample , int $ k = 1 ) : array
@@ -240,7 +240,7 @@ public function nearest(array $sample, int $k = 1) : array
240
240
*
241
241
* @param (string|int|float)[] $sample
242
242
* @param float $radius
243
- * @throws \Rubix\ML\Exceptions\ InvalidArgumentException
243
+ * @throws InvalidArgumentException
244
244
* @return array<array<mixed>>
245
245
*/
246
246
public function range (array $ sample , float $ radius ) : array
0 commit comments