Giter VIP home page Giter VIP logo

mcc4mcc's People

Contributors

ahamez avatar alban-linard avatar petitgrizzlies avatar rmencattini avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mcc4mcc's Issues

Output the decision trees

It may be interesting to look at the shape of the tree in order to identify useful or useless characteristics.

Maybe the "don't care" pattern of decision diagrams appears!

Problem with `custom-algo`

When i run:

$ ./extract.py --iterations=1 --duplicates=false

I get the following error. It does not happen with other algorithms.

INFO: Learning using algorithm: 'custom-algo'.
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00,  4.13it/s]
INFO: Algorithm: custom-algo
INFO:   Min     : 0.49337490257209665
INFO:   Max     : 0.49337490257209665
INFO:   Mean    : 0.49337490257209665
INFO:   Median  : 0.49337490257209665
Traceback (most recent call last):
  File "./extract.py", line 685, in <module>
    analyze_learned()
  File "./extract.py", line 667, in analyze_learned
    SCORES[name] = mcc_score(algorithm)
  File "./extract.py", line 566, in mcc_score
    alg_or_tool.predict(pandas.DataFrame([test]))[0]
  File "./extract.py", line 123, in predict
    y_pred[mask] = self.multi.predict(test_x[mask])
  File "/usr/local/lib/python3.6/site-packages/sklearn/ensemble/forest.py", line 538, in predict
    proba = self.predict_proba(X)
  File "/usr/local/lib/python3.6/site-packages/sklearn/ensemble/forest.py", line 578, in predict_proba
    X = self._validate_X_predict(X)
  File "/usr/local/lib/python3.6/site-packages/sklearn/ensemble/forest.py", line 357, in _validate_X_predict
    return self.estimators_[0]._validate_X_predict(X, check_input=True)
  File "/usr/local/lib/python3.6/site-packages/sklearn/tree/tree.py", line 373, in _validate_X_predict
    X = check_array(X, dtype=DTYPE, accept_sparse="csr")
  File "/usr/local/lib/python3.6/site-packages/sklearn/utils/validation.py", line 462, in check_array
    context))
ValueError: Found array with 0 sample(s) (shape=(0, 23)) while a minimum of 1 is required.

Switch the code to Pep8 standard.

It's more a request than an issue. Can we convert the code to the Pep8 standard. It's a syntaxe standard used in most of the python project.
The errors to correct are :

  • E272 -> multiple spaces before keyword
  • E201 -> whitespace after '['
  • E202 -> whitespace before ']'
  • E251 -> unexpected spaces around keyword/parameters
  • E211 -> whitespaces before '('

Negative score values for regression

When i run:

$ ./extract.py

The results for regression algorithms are:

INFO: Algorithm: decision-tree-regression
INFO:   Min     : -0.23408958008379654
INFO:   Max     : -0.013248075792894998
INFO:   Mean    : -0.10488969127417243
INFO:   Median  : -0.10611363409432173
INFO:   Stdev   : 0.06583227749288169
INFO:   Variance: 0.004333888759899777
INFO: Learning using algorithm: 'knn-regression'.

INFO: Algorithm: knn-regression
INFO:   Min     : -0.10861812564105898
INFO:   Max     : 0.030489299735053432
INFO:   Mean    : -0.04368667835772075
INFO:   Median  : -0.05275172799947181
INFO:   Stdev   : 0.04813321043108172
INFO:   Variance: 0.002316805946402794
INFO: Learning using algorithm: 'random-forest-regression'.

INFO: Algorithm: random-forest-regression
INFO:   Min     : -0.05989802856982962
INFO:   Max     : 0.06089070070317171
INFO:   Mean    : 0.003811517055560587
INFO:   Median  : -0.003230270254699741
INFO:   Stdev   : 0.03777773047303064
INFO:   Variance: 0.0014271569196929476

The problem only happens with the option duplicates=false.

Less data used

@saucisson
I have noticed there are less datas than before.
INFO: Select 9366 best entries.
And before it was :
INFO: Select 10261 best entries.

Is it normal ?

Store distances together with tools

The vector for learning algorithms could contain a distance from the fastest tool, together with the tool name. Can it allow us to find the fastest tool instead of just a correct tool?

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.