コード例 #1
0
ファイル: svm.py プロジェクト: NikhilPr95/MusicAI
 def __init__(self,
              ngramlength=4,
              data_type='ngram_notes',
              activation=None,
              kernel='rbf',
              chords_in_ngram=False,
              notes=None,
              softmax=False,
              oversampling=False):
     Base.__init__(self)
     self.clf = None
     self.ngramlength = ngramlength
     self.data_type = data_type
     self.activation = activation
     self.kernel = kernel
     self.chords_in_ngram = chords_in_ngram
     self.notes = notes
     self.softmax = softmax
     self.oversampling = oversampling
コード例 #2
0
 def __init__(self,
              data_type,
              activation=None,
              kernel=None,
              ngramlength=None,
              chords_in_ngram=False,
              notes=None,
              softmax=False,
              oversampling=False):
     Base.__init__(self)
     self.knn = KNN()
     self.omm = OMM()
     self.data_type = data_type
     self.activation = activation
     self.kernel = kernel
     self.ngramlength = ngramlength
     self.chords_in_ngram = chords_in_ngram
     self.notes = notes
     self.softmax = softmax
     self.oversampling = oversampling
コード例 #3
0
	def __init__(self):
		Base.__init__(self)
		self.clf = None
コード例 #4
0
 def __init__(self):
     Base.__init__(self)
     self.clf = None
     self.chords = None