Entscheidungsbäume in PHP oder Python realisieren?

Gute Abend,

ich versuche algorithmisch einfache Probleme zu lösen. Zum Testen möchte ich ein Programm schreiben, der mit automatisch sagt, welchen Film ich mir anschauen soll oder an welche Uni ich mich einschreiben soll. Die Idee ist anz einfach:
Es gibt verschiedene Filme, die man sich anschauen kann und diese Filme gehören zu verschiedene Kategorien an {Science Fiction, Fantasy, Comedy etc}, dann gibt es Regisseur Bewertung {gut, ok, schlecht},Preis: {günstig, ok, teuer} usw. Nun möchte ich diese Attribute als einem Baum modellieren und auch automatisch aussuchen, welchen Film ich mir anschauen sollte. Ich weiß auch wie das alles in der Theorie geht, aber sehr viel Praxiserfahrung habe ich nicht.
Am liebsten würde ich mich gar nicht mit den Datenstrukturen und Algorithmen beschäftigen, sondern auch vorhandene Bibliotheken zugreifen. Gibt es Implementierungen für Entscheidungsbäume in PHP oder Python? Wenn ja, welche Bibliothek könnt ihr mir empfehlen?

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare

  • 1 day 20 hours ago
    Warning: Undefined array key "url" in Drupal\Core\Asset\CssCollectionOptimizerLazy->optimizeGroup()
    Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup() 
  • 3 days 21 hours ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr
    sudo timedatectl set-timezone Europe/Berlin
  • 1 week 3 days ago
    Warning: PHP Startup: Unable to load dynamic library 'apcu.so' ... cannot open shared object file: No such file or directory

    Try this:

  • 3 weeks 2 days ago
    List Cronjobs for all users (via for + crontab)

    Alternative (without warnings like "no crontab for dovecot") to see all tasks:

  • 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

    php 8.3 apcu failed

    über Plesk hat es geklappt.

     

  • 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

     

    install:

    # sudo apt install php-dev
    
  • 3 weeks ago
    pecl install apcu : phpize: not found / ERROR: `phpize' failed

    phpize

    # sudo apt install php-dev
    

     

    details

  • 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

    Problem:

  • 2 months 1 week ago
    Install APCu (PHP 8.1, Plesk)

    Problem:

  • 3 months 2 weeks ago
    Linux mv: das Verschieben von 'new' nach 'old' ist nicht möglich: Das Verzeichnis ist nicht leer

    Hilft "cp -avf old new && rm -rvf old" nicht?