BrainML-0.0.3
توضیحات
BrainML is a machine learning library capable of implementing neural networks.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | BrainML-0.0.3 |
| نام | BrainML |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bibina Bogdan |
| ایمیل نویسنده | bogdanbibina@gmail.com |
| آدرس صفحه اصلی | https://github.com/bogdan124/BrainML |
| آدرس اینترنتی | https://pypi.org/project/BrainML/ |
| مجوز | Apache license 2.0 |
Code example for XOR problem:
```
##first import tensorflow
import tensorflow as tf
##second import BrainMl
import BrainMl as dl
from BrainMl.layers import Dense,Dropout
from BrainMl.optimizer import Optimizer,Adam
##from BrainMl.activation import Activator,relu,softmax
##define an empty model
model=dl.Model()
##define Sequential model and add layers
save=model.Sequential([
##Here we add 4 dense layers and a Dropout
Dense(4,activation="relu",shape=[2,2]),
Dense(8, activation="relu"),
Dense(2, activation="relu"),
Dropout(0.9),
Dense(1, activation="relu")
],name="model1")
## X is our data
X = [[0,0],[0,1],[1,0],[1,1]]
## y is our label
Y = [[0],[1],[1],[0]]
##we define an optimizer
optim=Adam(learning_rate=0.01)
##and compile the model along with optimizer
model.compile(optimizer=optim)
##than we start trainning the model
model.fit(X,Y,epochs=100,display=["all"])
##all-displays current epoch and error
##in list you can add "epoch"-to show just epoch or "error"-just for the error
```
نیازمندی
| مقدار | نام |
|---|---|
| ==2.0.0 | tensorflow |
نحوه نصب
نصب پکیج whl BrainML-0.0.3:
pip install BrainML-0.0.3.whl
نصب پکیج tar.gz BrainML-0.0.3:
pip install BrainML-0.0.3.tar.gz