mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-25 22:37:34 +00:00
a36fe086d3
* Install phpbench 🚀
* Add first benchmark for LeastSquares
* Update README and CONTRIBUTING guide
* Fix typo
21 lines
444 B
PHP
21 lines
444 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
require __DIR__.'/../../vendor/autoload.php';
|
|
|
|
$dataDir = __DIR__.'/Data';
|
|
|
|
$datasets = [
|
|
'https://github.com/php-ai/php-ml-datasets/raw/0.1.0/datasets/bike-sharing-hour.csv',
|
|
];
|
|
|
|
foreach ($datasets as $dataset) {
|
|
$path = $dataDir.'/'.basename($dataset);
|
|
if (!file_exists($path)) {
|
|
if (!copy($dataset, $path)) {
|
|
die(sprintf('Failed to download %s', $dataset));
|
|
}
|
|
}
|
|
}
|