https://github.com/inquid/yii2-tensorflow-js
Tensorflow JS Integration
https://github.com/inquid/yii2-tensorflow-js
Last synced: 6 months ago
JSON representation
Tensorflow JS Integration
- Host: GitHub
- URL: https://github.com/inquid/yii2-tensorflow-js
- Owner: inquid
- Created: 2018-06-15T05:33:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-12T17:34:38.000Z (over 7 years ago)
- Last Synced: 2025-02-22T18:50:14.877Z (10 months ago)
- Language: PHP
- Size: 103 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Tensorflow JS Yii2 integration
==============================
Widgets and useful stuff to use tensorflow js on Yii2

Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist inquid/yii2-tensorflow-js "*"
```
or add
```
"inquid/yii2-tensorflow-js": "*"
```
to the require section of your `composer.json` file.
Usage
-----
Once the extension is installed, simply use it in your code by :
```php
= \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](https://www.youtube.com/watch?v=pbCExciEbrc)
Here is the example of the video:
```php
= \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]]); ?>
```