Skip to content

Commit

Permalink
Mark toString as internal
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Jul 14, 2021
1 parent 79314e1 commit 91c0a44
Show file tree
Hide file tree
Showing 164 changed files with 332 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/AnomalyDetectors/GaussianMLE.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ protected function logLikelihood(array $sample) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/AnomalyDetectors/IsolationForest.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ protected function isolationScore(array $sample) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/AnomalyDetectors/LocalOutlierFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ protected function localReachabilityDensity(array $indices, array $distances) :
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/AnomalyDetectors/Loda.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ protected function decide(float $score) : int
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/AnomalyDetectors/OneClassSVM.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ public function load(string $path) : void
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/AnomalyDetectors/RobustZScore.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ protected function z(array $sample) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Backends/Amp.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ public function flush() : void
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Backends/Serial.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public function flush() : void
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/BootstrapAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ protected function decideDiscrete(array $votes) : string
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/AdaBoost.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,8 @@ public function __serialize() : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/ClassificationTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ protected function impurity(array $labels) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/DummyClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ public function predictSample(array $sample) : string
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/ExtraTreeClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ protected function impurity(array $labels) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/GaussianNB.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ protected function jointLogLikelihood(array $sample) : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/KDNeighbors.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ public function probaSample(array $sample) : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/KNearestNeighbors.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ protected function nearest(array $sample) : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/LogisticRegression.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ public function __serialize() : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/MultilayerPerceptron.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,8 @@ public function __serialize() : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/NaiveBayes.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ protected function jointLogLikelihood(array $sample) : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/RadiusNeighbors.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ public function probaSample(array $sample) : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/RandomForest.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ public function featureImportances() : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/SVC.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ public function load(string $path) : void
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Classifiers/SoftmaxClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ public function __serialize() : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Clusterers/DBSCAN.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ public function predict(Dataset $dataset) : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Clusterers/FuzzyCMeans.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ public function __serialize() : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Clusterers/GaussianMixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,8 @@ public function __serialize() : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Clusterers/KMeans.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@ public function __serialize() : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Clusterers/MeanShift.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ public function __serialize() : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Clusterers/Seeders/KMC2.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public function seed(Dataset $dataset, int $k) : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Clusterers/Seeders/PlusPlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ public function seed(Dataset $dataset, int $k) : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Clusterers/Seeders/Preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public function seed(Dataset $dataset, int $k) : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/Clusterers/Seeders/Random.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function seed(Dataset $dataset, int $k) : array
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CommitteeMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ protected function decideContinuous(array $votes) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CrossValidation/HoldOut.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public function test(Learner $estimator, Labeled $dataset, Metric $metric) : flo
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CrossValidation/KFold.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ public function test(Learner $estimator, Labeled $dataset, Metric $metric) : flo
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CrossValidation/LeavePOut.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public function test(Learner $estimator, Labeled $dataset, Metric $metric) : flo
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CrossValidation/Metrics/Accuracy.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public function score(array $predictions, array $labels) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CrossValidation/Metrics/Completeness.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public function score(array $predictions, array $labels) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CrossValidation/Metrics/FBeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ public function score(array $predictions, array $labels) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CrossValidation/Metrics/Homogeneity.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public function score(array $predictions, array $labels) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CrossValidation/Metrics/Informedness.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public function score(array $predictions, array $labels) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CrossValidation/Metrics/MCC.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ public function score(array $predictions, array $labels) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CrossValidation/Metrics/MeanAbsoluteError.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public function score(array $predictions, array $labels) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
2 changes: 2 additions & 0 deletions src/CrossValidation/Metrics/MeanSquaredError.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public function score(array $predictions, array $labels) : float
/**
* Return the string representation of the object.
*
* @internal
*
* @return string
*/
public function __toString() : string
Expand Down
Loading

0 comments on commit 91c0a44

Please sign in to comment.