Skip to content

Commit 865e54a

Browse files
committed
Fix coding style
1 parent 20aba67 commit 865e54a

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

benchmarks/Graph/Trees/VantageTreeBench.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class VantageTreeBench
2020
protected $dataset;
2121

2222
/**
23-
* @var \Rubix\ML\Graph\Trees\VantageTree
23+
* @var VantageTree
2424
*/
2525
protected $tree;
2626

src/Datasets/Generators/Blob.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ class Blob implements Generator
4444
/**
4545
* Fit a Blob generator to the samples in a dataset.
4646
*
47-
* @param \Rubix\ML\Datasets\Dataset $dataset
48-
* @throws \Rubix\ML\Exceptions\InvalidArgumentException
47+
* @param Dataset $dataset
48+
* @throws InvalidArgumentException
4949
* @return self
5050
*/
5151
public static function simulate(Dataset $dataset) : self

src/Graph/Nodes/VantagePoint.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class VantagePoint implements Hypersphere, HasBinaryChildren
4646
/**
4747
* Factory method to build a hypersphere by splitting the dataset into left and right clusters.
4848
*
49-
* @param \Rubix\ML\Datasets\Labeled $dataset
50-
* @param \Rubix\ML\Kernels\Distance\Distance $kernel
49+
* @param Labeled $dataset
50+
* @param Distance $kernel
5151
* @return self
5252
*/
5353
public static function split(Labeled $dataset, Distance $kernel) : self
@@ -128,7 +128,7 @@ public function radius() : float
128128
/**
129129
* Return the left and right subsets of the training data.
130130
*
131-
* @throws \Rubix\ML\Exceptions\RuntimeException
131+
* @throws RuntimeException
132132
* @return array{\Rubix\ML\Datasets\Labeled,\Rubix\ML\Datasets\Labeled}
133133
*/
134134
public function subsets() : array

src/Graph/Trees/VantageTree.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class VantageTree implements BinaryTree, Spatial
4444
/**
4545
* The distance function to use when computing the distances.
4646
*
47-
* @var \Rubix\ML\Kernels\Distance\Distance
47+
* @var Distance
4848
*/
4949
protected $kernel;
5050

@@ -106,7 +106,7 @@ public function bare() : bool
106106
/**
107107
* Return the distance kernel used to compute distances.
108108
*
109-
* @return \Rubix\ML\Kernels\Distance\Distance
109+
* @return Distance
110110
*/
111111
public function kernel() : Distance
112112
{
@@ -119,8 +119,8 @@ public function kernel() : Distance
119119
*
120120
* @internal
121121
*
122-
* @param \Rubix\ML\Datasets\Labeled $dataset
123-
* @throws \Rubix\ML\Exceptions\InvalidArgumentException
122+
* @param Labeled $dataset
123+
* @throws InvalidArgumentException
124124
*/
125125
public function grow(Labeled $dataset) : void
126126
{
@@ -169,7 +169,7 @@ public function grow(Labeled $dataset) : void
169169
*
170170
* @param (string|int|float)[] $sample
171171
* @param int $k
172-
* @throws \Rubix\ML\Exceptions\InvalidArgumentException
172+
* @throws InvalidArgumentException
173173
* @return array<array<mixed>>
174174
*/
175175
public function nearest(array $sample, int $k = 1) : array
@@ -240,7 +240,7 @@ public function nearest(array $sample, int $k = 1) : array
240240
*
241241
* @param (string|int|float)[] $sample
242242
* @param float $radius
243-
* @throws \Rubix\ML\Exceptions\InvalidArgumentException
243+
* @throws InvalidArgumentException
244244
* @return array<array<mixed>>
245245
*/
246246
public function range(array $sample, float $radius) : array

tests/Graph/Nodes/VantagePointTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class VantagePointTest extends TestCase
2828
protected const RADIUS = 1.5;
2929

3030
/**
31-
* @var \Rubix\ML\Graph\Nodes\VantagePoint
31+
* @var VantagePoint
3232
*/
3333
protected $node;
3434

tests/Graph/Trees/VantageTreeTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ class VantageTreeTest extends TestCase
2222
protected const RANDOM_SEED = 0;
2323

2424
/**
25-
* @var \Rubix\ML\Datasets\Generators\Agglomerate
25+
* @var Agglomerate
2626
*/
2727
protected $generator;
2828

2929
/**
30-
* @var \Rubix\ML\Graph\Trees\VantageTree
30+
* @var VantageTree
3131
*/
3232
protected $tree;
3333

0 commit comments

Comments
 (0)