Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.
   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace Phpml\Dataset\Demo;
   6  
   7  use Phpml\Dataset\CsvDataset;
   8  
   9  /**
  10   * Classes: 6
  11   * Samples per class:
  12   *      70 float processed building windows
  13   *      17 float processed vehicle windows
  14   *      76 non-float processed building windows
  15   *      13 containers
  16   *      9 tableware
  17   *      29 headlamps
  18   * Samples total: 214
  19   * Features per sample: 9.
  20   */
  21  class GlassDataset extends CsvDataset
  22  {
  23      public function __construct()
  24      {
  25          $filepath = __DIR__.'/../../../data/glass.csv';
  26          parent::__construct($filepath, 9, true);
  27      }
  28  }