SVMModel::predict_probability

(PECL svm >= 0.1.4)

SVMModel::predict_probabilityReturn class probabilities for previous unseen data

Beschreibung

public SVMModel::predict_probability(array $data): float

This function accepts an array of data and attempts to predict the class, as with the predict function. Additionally, however, this function returns an array of probabilities, one per class in the model, which represent the estimated chance of the data supplied being a member of that class. Requires that the model to be used has been trained with the probability parameter set to true.

Parameter-Liste

data

The array to be classified. This should be a series of key => value pairs in increasing key order, but not necessarily continuous.

probabilities

The supplied value will be filled with the probabilities. This will be either null, in the case of a model without probability information, or an array where the index is the class name and the value the predicted probability.

Rückgabewerte

Float the predicted value. This will be a class label in the case of classification, a real value in the case of regression. Throws SVMException on error

Siehe auch

  • SVM::predict()

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

Broncos re-signal LB Alex Singleton toward a 2-yr package

In accordance toward DNVR Broncos Zac Stevens, the Denver Broncos comprise resigned veteran linebacker Alex Singleton in the direction of a twoyea ...

Geschrieben von Capuanojers am 12.06.2026 02:29:59
Forum: Fragen/Vorschläge zum Forum
PFF Names 2 Chicago Bears inside of Their Yearly Supreme 101 Gamers

PFF declared tonight that 2 Chicago Bears include been identified as in the direction of its yearly PFF ultimate 101 gamers record for the 2025 be ...

Geschrieben von Capuanojers am 12.06.2026 02:29:24
Forum: News / Kostenloses
Ravens re-indicator OL Ben Cleveland

The Baltimore Ravens declared upon Saturday they include resigned offensive lineman Ben will come as a mighty question as Cleveland, a 2021thirdro ...

Geschrieben von Capuanojers am 12.06.2026 02:28:49
Forum: Ankündigungen
Chiefsnewbie DB Jadon Canady incorporates innumerable

The Kansas Town Chiefs opened Working day 3 of closing month NFL Draft by way of deciding upon Oregon defensive again Jadon Canady within just the ...

Geschrieben von Capuanojers am 12.06.2026 02:27:49
Forum: Fragen/Vorschläge zum Forum