Closed fritol closed 2 years ago
i installed with : conda install -c ankurankan pgmpy
conda install -c ankurankan pgmpy
When running:
`from pgmpy.estimators import HillClimbSearch
data = pd.DataFrame(np.random.randint(0, 3, size=(2500, 8)), columns=list('ABCDEFGH')) data['A'] += data['B'] + data['C'] data['H'] = data['G'] - data['A']
hc = HillClimbSearch(data, scoring_method=BicScore(data)) best_model = hc.estimate() print(best_model.edges())`
TypeError Traceback (most recent call last)
@fritol The scoring_method argument has been moved to the estimate method so that you don't have to create new objects for trying various scoring methods.
scoring_method
estimate
i installed with :
conda install -c ankurankan pgmpy
When running:
`from pgmpy.estimators import HillClimbSearch
data = pd.DataFrame(np.random.randint(0, 3, size=(2500, 8)), columns=list('ABCDEFGH')) data['A'] += data['B'] + data['C'] data['H'] = data['G'] - data['A']
hc = HillClimbSearch(data, scoring_method=BicScore(data)) best_model = hc.estimate() print(best_model.edges())`
i get this:
TypeError Traceback (most recent call last)