Skip to content

cnapole/CrossValidationRegression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Cross-Validation for Regression in Artificial Neural Networks (Python)

Description

This code shows how to use cross-validation for a regression problem in which somebody is looking forward to use artificial neural networks. It's actually a random dataset that has been generated. The ANN is a model that has been developed previously. The structures is as follows:

  1. libraries installation, imports, etc.
  2. Definition of the random dataset
  3. Train/Test split
  4. ANN definition
  5. KFold and estimator definition. The estimator has been made with SciKeras library
  6. Prediction/ fitting

How to install this

  1. Download the code
  2. Make sure that you installed:

How to tweak this code

There are several point to tweek. At least for me, the most important are the following ones:

  • K divisions
  • Model ANN

Found a bug?

Please let us know by writing it down and your thoughts about what caused that bug. Try to explain as much as you can. It will be very appreciate it

Work in progress

Other cross-validation techniques will be tests too.

Sources

www.educative.io/answers/how-to-implement-crossvalpredict-in-sklearn

scikit-learn.org/stable/modules/generated/sklearn.model_selection.cross_val_predict.html

About

Cross validation for regression datasets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors