Skip to content

Commit

Permalink
fix(deps): Fix use header in HDBSCAN.php
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Jan 24, 2024
1 parent b3516e4 commit 3bd77ea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/Clustering/HDBSCAN.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
declare(strict_types=1);
namespace OCA\Recognize\Clustering;

use \OCA\Recognize\Rubix\ML\Datasets\Labeled;
use \OCA\Recognize\Rubix\ML\EstimatorType;
use \OCA\Recognize\Rubix\ML\Helpers\Params;
use \OCA\Recognize\Rubix\ML\Kernels\Distance\Distance;
use \OCA\Recognize\Vendor\Rubix\ML\Datasets\Labeled;
use \OCA\Recognize\Vendor\Rubix\ML\EstimatorType;
use \OCA\Recognize\Vendor\Rubix\ML\Helpers\Params;
use \OCA\Recognize\Vendor\Rubix\ML\Kernels\Distance\Distance;

/**
* HDBSCAN
Expand Down Expand Up @@ -59,7 +59,7 @@ class HDBSCAN {
* The distance kernel used for computing interpoint distances.
*
*/
protected \OCA\Recognize\Rubix\ML\Datasets\Labeled $dataset;
protected \OCA\Recognize\Vendor\Rubix\ML\Datasets\Labeled $dataset;



Expand All @@ -70,7 +70,7 @@ class HDBSCAN {
* @param array $oldCoreDistances
* @param Distance $kernel
* @param bool $useTrueMst // (Build true or approximate minimum spanning tree)
* @throws \OCA\Recognize\Rubix\ML\Exceptions\InvalidArgumentException
* @throws \OCA\Recognize\Vendor\Rubix\ML\Exceptions\InvalidArgumentException
*/
public function __construct(Labeled $dataset, int $minClusterSize = 5, int $sampleSize = 5, array $oldCoreDistances = [], ?Distance $kernel = null, bool $useTrueMst = true) {
if ($minClusterSize < 2) {
Expand All @@ -96,7 +96,7 @@ public function getCoreNeighborDistances(): array {
/**
* Return the estimator type.
*
* @return \OCA\Recognize\Rubix\ML\EstimatorType
* @return \OCA\Recognize\Vendor\Rubix\ML\EstimatorType
*/
public function type(): EstimatorType {
return EstimatorType::clusterer();
Expand All @@ -105,7 +105,7 @@ public function type(): EstimatorType {
/**
* Return the data types that the estimator is compatible with.
*
* @return list<\OCA\Recognize\Rubix\ML\DataType>
* @return list<\OCA\Recognize\Vendor\Rubix\ML\DataType>
*/
public function compatibility(): array {
return $this->mstSolver->kernel()->compatibility();
Expand Down

0 comments on commit 3bd77ea

Please sign in to comment.