You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the code:
def get_max_entropy_distribution(mean):
SAMPLESPACE = np.arange(10)
features = get_features()
model = MinDivergenceModel(features, samplespace=SAMPLESPACE, algorithm='CG')
# set the desired feature expectations and fit the model
X = np.array([[mean]])
model.fit(X)
return model.probdist()
the resulting entropy is an array consisting of 0.9999998 or something, when i tried to revert it using calc_mean_score, it yields 5.5
The text was updated successfully, but these errors were encountered:
in the code:
def get_max_entropy_distribution(mean):
SAMPLESPACE = np.arange(10)
features = get_features()
the resulting entropy is an array consisting of 0.9999998 or something, when i tried to revert it using calc_mean_score, it yields 5.5
The text was updated successfully, but these errors were encountered: