407a5112ab430db6f23fc4317a7400ada797d274,examples/bench.py,,,#,5

Before Change


                                            multi_class="multinomial")

    clf2 = grid_search.GridSearchCV(mord.LogisticIT(), {"alpha": np.logspace(
        -3, 3, 10)})
    cv = cross_validation.StratifiedShuffleSplit(y, test_size=0.3)
    print(cross_validation.cross_val_score(clf1, X, y, cv=cv).mean())
    print(cross_validation.cross_val_score(clf2, X, y, cv=cv).mean())
    print()

After Change



clf2 = mord.LogisticAT(alpha=1.)
clf2.fit(X, y)
print("Mean Absolute Error of LogisticAT %s" %
      metrics.mean_absolute_error(clf2.predict(X), y))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: fabianp/mord
Commit Name: 407a5112ab430db6f23fc4317a7400ada797d274
Time: 2015-10-21
Author: f@bianp.net
File Name: examples/bench.py
Class Name:
Method Name:


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 4296a765125fff6491892a1bb70fb32ac516dae6
Time: 2018-02-10
Author: max.lapan@gmail.com
File Name: ch15/01_train_a2c.py
Class Name:
Method Name:


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 99abcc6e9b57f441999ce10dbc31ca1bed79c356
Time: 2018-02-10
Author: max.lapan@gmail.com
File Name: ch15/04_train_ppo.py
Class Name:
Method Name: