Skip to content

Instantly share code, notes, and snippets.

@tirthajyoti
Last active August 16, 2021 05:16
Show Gist options
  • Save tirthajyoti/46c2b9ddbc559de517f01ddc77f934a3 to your computer and use it in GitHub Desktop.
Save tirthajyoti/46c2b9ddbc559de517f01ddc77f934a3 to your computer and use it in GitHub Desktop.
Distfit demo
# Generate test data
data1 = np.random.normal(loc=5.0, scale=10, size=1000)
# Initialize model
dist1 = distfit(bins=25,alpha=0.02,stats='ks')
# Fit
dist1.fit_transform(data1,verbose=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment