PHP Classes

File: TEST/TrainingTest/visualize.php

Recommend this page to a friend!
  Classes of Cuthbert Martin Lwinga   PHP Neural Net Library   TEST/TrainingTest/visualize.php   Download  
File: TEST/TrainingTest/visualize.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Neural Net Library
Build, train, evaluate, and use neural networks
Author: By
Last change:
Date: 6 months ago
Size: 770 bytes
 

Contents

Class file image Download
<?php
include_once("../../CLASSES/Headers.php");
use
NameSpaceNumpyLight\NumpyLight;
use
NameSpaceRandomGenerator\RandomGenerator;
use
NameSpaceActivationRelu\Activation_Relu;
use
NameSpaceOptimizerSGD\Optimizer_SGD;
use
NameSpaceOptimizerAdagrad\Optimizer_Adagrad;
use
NameSpaceOptimizerRMSprop\Optimizer_RMSprop;

$dataAnalyzed = "mandelbrot_spiral_data";
list(
$X, $y) = NumpyLight::mandelbrotData(500, 500);; // Call your Mandelbrotized spiral data function
$filename = pathinfo(basename($_SERVER['SCRIPT_NAME']), PATHINFO_FILENAME);

// $plotterTemp = new LinePlotter(500, 500);
// $plotterTemp->plotPoints($X, $y);
// $plotterTemp->save("images/".$filename."_$dataAnalyzed.png");

// echo json_encode(NumpyLight::displayMatrix(NumpyLight::reshape($y, [-1,1])));

?>