Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.
   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  }