Comments (1)
In the example on Neupy page they do normalization from the preprocessing in Skitlearn library:
import numpy as np
from sklearn import datasets, preprocessing
from sklearn.model_selection import train_test_split
from neupy import algorithms
**dataset = datasets.load_diabetes()
x_train, x_test, y_train, y_test = train_test_split(
preprocessing.minmax_scale(dataset.data),
preprocessing.minmax_scale(dataset.target.reshape(-1, 1)),
test_size=0.3,
)**
nw = algorithms.GRNN(std=0.1, verbose=False)
nw.train(x_train, y_train)
y_predicted = nw.predict(x_test)
mse = np.mean((y_predicted - y_test) ** 2)
mse
from neupy.
Related Issues (20)
- LVQ bug (type error) HOT 4
- The number of patterns as a feature in GRNN HOT 4
- PDF calculation in PNN algorithm
- 3D point cloud input HOT 1
- module 'neupy.utils' has no attribute 'reproducible' HOT 2
- Combine fireTS library with neupy library for NARX network based on Levenberg Marquardt HOT 6
- ImportError: cannot import name 'reproducible' from 'neupy.utils' HOT 1
- Proposing a PR to fix a few small typos
- Relate data points to clusters after clustering with GNG HOT 1
- Something is wrong with GRNN implementation HOT 1
- Performance issues in the program HOT 1
- Error on neupy import "cannot import name 'gcd' from 'fractions'" HOT 2
- Issue with LevenbergMarquardt optimiser algorithm (scan_perform)
- Not all documented ART1 parameters actually used
- ART1: calling predict() multiple times does not give same result HOT 4
- cannot import name 'MutableMapping' from 'collections' HOT 2
- GRNN training
- GNG collections import HOT 1
- ImportError: HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neupy.