An implementation of Feedforward Neural Networks for quick applications.
Project description
QuickNN
The quicknn is a Tensorflow-based package that aims to simplify the application of the feedforward neural networks in classification and regression problems. The main features of the quicknn package are:
- internally management of the categorical variables with one-hot-encoding(OHE) method batch-wise, just you have to feed it with pandas object;
- internally management of the validation of the data while training;
- possibility to stop the training phase, change some parameters and then resume the training from where it had remained;
- allows easy visualization of the learning curves using Tensorboard;
Example
from quicknn import QuickNN
from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
X, y = load_boston(return_X_y=True)
X_train, X_val, y_train, y_val = train_test_split(X, y, test_size=0.25)
qnn = QuickNN(list_neurons=[100, 200, 1])
qnn.fit(X_train, y_train, n_epochs=10) ## In IPython session you can stop-change-resume the training.
qnn.fit(X_train, y_train, n_epochs=20) ## Just increasing the n_epochs.
qnn.fit(X_train, y_train, n_epochs=30,
learning_rate=0.01) ## You can change e.g., the learning_rate param while training
y_pred = qnn.predict(X_val)
Installing
The dependencies are showed in requirements.txt, which can be installed with the command:
$ pip install -r requirements.txt
Then the library can easily downloaded through pip:
$ pip install quicknn
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quicknn-1.0.9.tar.gz.
File metadata
- Download URL: quicknn-1.0.9.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8abeb1ad6ede14a385253e262c530b1c73c50e6df8b0173900de03af6bf03414
|
|
| MD5 |
6f6826d706dab56704d16c11248caba5
|
|
| BLAKE2b-256 |
0101ef868e27881cca9c12198c53dc396ca52a2004591799ed3a9a61973b94ff
|
File details
Details for the file quicknn-1.0.9-py3-none-any.whl.
File metadata
- Download URL: quicknn-1.0.9-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71a4fd5e547657ee707279b55de2a9d93dc9a6f040d471763c85cb9bddf3772c
|
|
| MD5 |
0030e6c839d4cfa9c419e509c4e1104c
|
|
| BLAKE2b-256 |
b64a1ec08b5f1a953419202e54244f4939b26a6f6322c0750d83f604148f6915
|