Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #199 from ndawe/master
Browse files Browse the repository at this point in the history
[MRG] reduce number of travis tests
  • Loading branch information
ndawe committed May 6, 2015
2 parents 4f858e0 + bd0711e commit f05d4c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ python:
- "3.4"
env:
- ROOT=v5-34-18
- ROOT=v5-34-18 NOTMVA=1
- ROOT=master COVERAGE=1
install: source ci/install.sh
script: bash ci/test.sh
Expand Down
3 changes: 2 additions & 1 deletion examples/tmva/plot_multiclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@
# Call root_numpy's utility functions to add events from the arrays
add_classification_events(factory, X_train, y_train, weights=w_train)
add_classification_events(factory, X_test, y_test, weights=w_test, test=True)
# The following line is necessary if events have been added individually:
factory.PrepareTrainingAndTestTree(TCut('1'), 'NormMode=EqualNumEvents')

# Train a BDT
factory.PrepareTrainingAndTestTree(TCut('1'), 'NormMode=EqualNumEvents')
factory.BookMethod('BDT', 'BDTG',
'nCuts=20:NTrees=20:MaxDepth=4:'
'BoostType=Grad:Shrinkage=0.10')
Expand Down
4 changes: 3 additions & 1 deletion examples/tmva/plot_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@

add_regression_events(factory, X, y)
add_regression_events(factory, X, y, test=True)
factory.PrepareTrainingAndTestTree(TCut('1'), 'NormMode=EqualNumEvents')
# The following line is necessary if events have been added individually:
factory.PrepareTrainingAndTestTree(TCut('1'), '')

factory.BookMethod('BDT', 'BDT1',
'nCuts=20:NTrees=1:MaxDepth=4:BoostType=AdaBoostR2:'
'SeparationType=RegressionVariance')
Expand Down
3 changes: 2 additions & 1 deletion examples/tmva/plot_twoclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@
# Call root_numpy's utility functions to add events from the arrays
add_classification_events(factory, X_train, y_train, weights=w_train)
add_classification_events(factory, X_test, y_test, weights=w_test, test=True)
# The following line is necessary if events have been added individually:
factory.PrepareTrainingAndTestTree(TCut('1'), 'NormMode=EqualNumEvents')

# Train a classifier
factory.PrepareTrainingAndTestTree(TCut('1'), 'NormMode=EqualNumEvents')
factory.BookMethod('Fisher', 'Fisher',
'Fisher:VarTransform=None:CreateMVAPdfs:'
'PDFInterpolMVAPdf=Spline2:NbinsMVAPdf=50:'
Expand Down

0 comments on commit f05d4c2

Please sign in to comment.