Giter Site home page Giter Site logo

bitan1998 / ann-training-using-diferential-evolution Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 475 KB

Multiple randomized ANN are being generated that is being taken from user input(total number of ANN) then we have approached one of the nature-inspired-algorithms such as DIFFERENTIAL-EVOLUTION(DE) on a soil-content-dataset to prove that it has better prediction and optimising values other than some well defined algorithms such as SUPPORT-VECTOR-REGRESSION(SVR) and MLP-REGRESSOR.

License: MIT License

Python 100.00%
differential-evolution ann svr mlp-regressor matplotlib-pyplot numpy rmse pandas-dataframe

ann-training-using-diferential-evolution's Introduction

FINAL-YEAR-PROJECT

ann-training-using-diferential-evolution's People

Contributors

bitan1998 avatar sayan51297 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ann-training-using-diferential-evolution's Issues

error

Got error

ValueError Traceback (most recent call last)
in
----> 1 f,b = de(bounds=[(-5,5)] * (3 * nodes_in_hidden_layer + nodes_in_hidden_layer) , popsize=number_of_ann, hidden_nodes=nodes_in_hidden_layer)
2 print(b)
3 plt.xlabel('ITERATION')
4 plt.ylabel('FITNESS')
5 plt.title('Evolution of fitness on 45235 iterations')

in de(bounds, popsize, hidden_nodes, mut, crossp, its)
13 for j in range(popsize):
14 idxs = [idx for idx in range(popsize) if idx != j]
---> 15 a, b, c = pop[np.random.choice(idxs, 3, replace = False)]
16 mutant = np.clip(a + mut * (b - c), 0, 1)
17 cross_points = np.random.rand(dimensions) < crossp

mtrand.pyx in mtrand.RandomState.choice()

ValueError: Cannot take a larger sample than population when 'replace=False'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.