Skip to content

Commit

Permalink
Not normalising host before classification/training anymore. This app…
Browse files Browse the repository at this point in the history
…ears to give marginally better results.
  • Loading branch information
daniel-muthukrishna committed Jun 1, 2018
1 parent 4c1cc61 commit 6c887ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dash/combine_sn_and_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _bin_sn_template(self, ageIdx):

def _bin_gal_template(self):
wave, flux = self.readSpectrumFile.two_col_input_spectrum(self.wave, self.flux, z=0)
flux = normalise_spectrum(flux)
# flux = normalise_spectrum(flux)
binnedWave, binnedFlux, minIndex, maxIndex = self.preProcess.log_wavelength(wave, flux)
contRemovedFlux, continuum = self.preProcess.continuum_removal(binnedWave, binnedFlux, self.numSplinePoints, minIndex, maxIndex)
newFlux = contRemovedFlux * continuum # Spectral features weighted by the continuum
Expand Down

0 comments on commit 6c887ee

Please sign in to comment.