Coder Social home page Coder Social logo

fylearn's People

Contributors

dependabot-preview[bot] avatar sorend avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fylearn's Issues

RuntimeWarning: divide by zero encountered in true_divide

I am getting the:

/home/user/.virtualenvs/fuzzylearning/lib/python3.5/site-packages/fylearn/frr.py:150: 
RuntimeWarning: divide by zero encountered in true_divide
  return 2 ** -((np.abs(m - S) / C) ** self.D)

warning when testing the ModifiedFuzzyPatternClassifier for my dataset.
As such the result accuracy is small, e.g. 0.1955
Any suggestions why?

ps. Thank you for your code distribution and for your time.

Get number of rules

It is possible to implement a method to get the number of rules of the final estimator?

Sample

It will be more viable if you provide some samples to apply to this library.

Improve bibliography

Please add more info about articles you've referred to when implementing classifiers. Currently provided bibliography entries are incomplete.

For example:
fylearn/fpt.py at master:

References:
[1] Hwong, 2009.
[2] Senge and Huellemeier, 2009.
[3] Senge and Huellemeier, 2010.

Ad. 1

I believe the guy's name is Huang.

Ad. 2

There is one article from 2009 that I found. It's "Learning Pattern Tree Classifiers Using a
Co-Evolutionary Algorithm" and this doesn't sound right at all, considering that it's not about top-down fuzzy pattern trees, or so it seems.

Another article, which probably is the right one, is "Top-Down Induction of Fuzzy Pattern Trees" by those guys. More or less. Latter's name is Hüllermeier. Also, from what I see, it's from 2011, not 2009...

Please provide more info when you cite an article. This will be really helpful.

How to add multiple variables(subjects) by using lower bound and upper bound?

Hey, Thanks for this work in python. My query is the follwoing:
How can we implement this code to minimise my objective function, if i have multiple variables in the function that i wish to create? I am unable to define multiple variables at the moment inside the function.

say, i wish to minimise the function 2x+ 10x2 +32* z+35*z2 + x*z , with x [-5,5] and z [-5,5], How can we do that, since the TLBO generates variables based on bounds, how to use that variables in my function. Hope you can help me?

Regards,
Alan

Random state in local_search optimizers

Hello,

You have done very good work here!

If I pass an integer as random_state in local_search optimizers I get AttributeError: 'int' object has no attribute 'rand'.
In other places like in JayaOptimizer you catch this.

Since you have scikit-learn as hard dependency I would suggest to use the check_random_state utility function to create the random number generator object

http://scikit-learn.org/stable/modules/generated/sklearn.utils.check_random_state.html#sklearn.utils.check_random_state

I could send a PR for this change.

population elements in heuristic search methods

Greetings!

I'm trying to find if it is possible to use arbitrary numpy arrays as elements of the population for the search methods in the library. Or, even better, objects or dictionaries. Can you shed a light on that? Thanks in advance!

I find FuzzyPatternClassifier give all zero proba about all classies for one sample

I give s sample code:

from fylearn.nfpc import FuzzyPatternClassifier
from sklearn import datasets
import numpy as np
iris = datasets.load_iris()
X = iris.data
y = iris.target
c = FuzzyPatternClassifier()
pro = c.fit(X, y).predict_proba(X)
pro_sum = pro.sum(axis=1)
print(pro_sum[np.where(pro_sum==0)].shape)

I finally get result , (12,)

Jaya

I want to know how does the jaya work,and i want to use it in xgboost to optimize parameters,what can i do?thank you

Examples

Hi, Could you please provide some functional examples for working with this library?

Iteration results

Hey, is it possible to obtain the results of each iteration like a history?

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.