Python Machine Learning, Image Generation, Decision Trees, Label Encoders, and more!
Installing
shell
Linux/macOS
python3 pip install -U flowa
Windows
py -3 -m pip install -U flowa
(1) -> Merge the `netwk` library.
python
Create neural networks:
x = flowa.Array([[0, 0], [0, 1], [1, 0], [1, 1]])
y = flowa.Array([[0], [1], [1], [0]])
network = flowa.Network(
flowa.Input(2),
(
flowa.Hidden(4, flowa.Tanh),
flowa.Hidden(2, flowa.Sigmoid)
),
flowa.Output(1)
)
network.train(x, y, epoch=1000)
print(network.predict(x))
(2) -> Updated the flowa.network.Module class