Giter Club home page Giter Club logo

possivel-biblioteca-result-ic-pypi's Introduction

Biblioteca do Joao

Pypi Version Documentation Status License Documentation Status

A biblioteca xxxxxxxxxx. Documentação construida no Read the Docs, é possivel encontrar e ler alguns exemplos aqui

Installation

Este pacote está disponível no PyPI e é pode ser instalado com o pip:

$ pip install |name|

A baixo é um pequeno exemplo de como utilizar diferentes algoritmos para um dado problema:

from pacote1_raiz import FireFly
from pacote1_raiz import Pop, Abc, Pso, Sa


nPop = 10
nGen = 50
ranges = np.array([[-50, 50]]*10)
fun = rastrigin

meta1 = Pso()
meta2 = FireFly()
meta3 = Abc()
meta4 = Sa()

nRep = 100
metas = {'Abc': [Pop(meta3, fun, ranges, int(nPop/2), nGen) for r in range(nRep)],
                 'Pso': [Pop(meta1, fun, ranges, nPop, nGen) for r in range(nRep)],
                 'FA': [Pop(meta2, fun, ranges, nPop, nGen) for r in range(nRep)],
                 'Sa': [Pop(meta4, fun, ranges, nPop, nGen) for r in range(nRep)]
                }

for k, reps in tqdm(metas.items()):
        for r in reps:
                for g in range(1, nGen):
                        next(r)

for k, v in metas.items():
        bestRep = min(v, key=lambda m: m.pBest['value'][-1])

        print('%s:' %k)
        print(bestRep.pBest['ch'][-1])
        print('FO:', bestRep.pBest['value'][-1])
        print()

Para mais informações consulte a pagina de instalação

Configuration

This theme is highly customizable on both the page level and on a global level. To see all the possible configuration options, read the documentation on configuring the theme.

Contributing

Se você gostaria de contribuir, siga as intruções no guia de contribuição.

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.