Skip to content

Commit

Permalink
Trying to pull part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigi Stark authored and Gigi Stark committed Jul 6, 2016
1 parent 6659647 commit 946c8ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def sha(s):
open(pickle_name, 'wb'),
protocol=cPickle.HIGHEST_PROTOCOL)

<<<<<<< HEAD
# -- plot distributions:
'''
This should produce normed, weighted histograms of the input distributions for all variables
Expand Down Expand Up @@ -126,7 +125,6 @@ def sha(s):
[5, 5, 3, 3, 2, 2]
)

||||||| merged common ancestors
# -- plot distributions:
'''
This should produce normed, weighted histograms of the input distributions for all variables
Expand Down Expand Up @@ -157,7 +155,6 @@ def sha(s):
print X_jets_train.shape, X_photons_train.shape

=======
>>>>>>> 1a214b6daea28f00860eb31110c2790fe6417efb
# # -- train
# # design a Keras NN with three RNN streams (jets, photons, muons)
io.save(('X_jets_NN.h5'), NN(X_jets_train, X_jets_test, y_train))
Expand Down
5 changes: 1 addition & 4 deletions plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def plot_inputs(data, particle_names):
sets of each class for each feature
'''

<<<<<<< HEAD
_plot_X(X_jets_train, X_jets_test, y_train, y_test, w_train, w_test, varlist, 'Jet')
_plot_X(X_photons_train, X_photons_test, y_train, y_test, w_train, w_test, varlist, 'Photon')
_plot_X(X_muons_train, X_muons_test, y_train, y_test, w_train, w_test, varlist, 'Muon')
Expand All @@ -120,11 +119,10 @@ def plot_NN(yhat, y_test, w_test):
plt.legend()
plt.show()

||||||| merged common ancestors
_plot_X(X_jets_train, X_jets_test, y_train, y_test, w_train, w_test, varlist, 'Jet')
_plot_X(X_photons_train, X_photons_test, y_train, y_test, w_train, w_test, varlist, 'Photon')
_plot_X(X_muons_train, X_muons_test, y_train, y_test, w_train, w_test, varlist, 'Muon')
=======

for particle in particle_names:
_plot_X(
data['X_' + particle + '_train'],
Expand All @@ -137,4 +135,3 @@ def plot_NN(yhat, y_test, w_test):
data['LabelEncoder'],
particle
)
>>>>>>> 1a214b6daea28f00860eb31110c2790fe6417efb

0 comments on commit 946c8ba

Please sign in to comment.