dev-master
9999999-devWidgets and useful stuff to use tensorflow js on Yii2
MIT
The Requires
by Inquid INC
extension yii2 google js machine learning tensorflow tensorflow js
Wallogit.com
2017 © Pedro Peláez
Widgets and useful stuff to use tensorflow js on Yii2
Widgets and useful stuff to use tensorflow js on Yii2
, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist inquid/yii2-tensorflow-js "*"
or add, (*4)
"inquid/yii2-tensorflow-js": "*"
to the require section of your composer.json file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
<?= \inquid\tensoflowjs\TensorflowWidget::widget(['x1'=>[1, 2, 3, 4],'x2'=>[1, 3, 5, 7],'y1'=>[4,1],'y2'=>[4,1],'epochs'=>11]); ?>
You can use this video as guide to understand how Tensorflow works: Video, (*7)
Here is the example of the video:, (*8)
<?= \inquid\tensorflowjs\TensorflowWidget::widget(['x1'=>[-1,0,1,2,3,4],'x2'=>[-3,-1,1,3,5,7],'y1'=>[6,1],'y2'=>[6,1],'epochs'=>500,'testDataX' => [20],'testDataY' => [1,1]]); ?>
Widgets and useful stuff to use tensorflow js on Yii2
MIT
extension yii2 google js machine learning tensorflow tensorflow js