This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import pandas as pd | |
| import seaborn as sns | |
| import matplotlib.pyplot as plt | |
| from sklearn.feature_extraction.text import CountVectorizer | |
| from sklearn.linear_model import Ridge, Lasso, ElasticNet as Elastic | |
| from sklearn.model_selection import KFold | |
| wine1 = pd.read_csv('wine1.csv') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FAIL: test_test_conditional_independence_titanic (pgmpy.tests.test_estimators.test_BaseEstimator.TestBaseEstimator) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/chris/softw/pgmpy/pgmpy/tests/test_estimators/test_BaseEstimator.py", line 46, in test_test_conditional_independence_titanic | |
| (96.403283942888635, 4.1082315854166553e-13, True)) | |
| AssertionError: Tuples differ: (96.403283942888621, 4.1082315854166846e-13, True) != (96.40328394288863, 4.1082315854166553e-13, True) | |
| First differing element 0: | |
| 96.4032839429 | |
| 96.40328394288863 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import struct | |
| import numpy as np | |
| """ | |
| Loosely inspired by http://abel.ee.ucla.edu/cvxopt/_downloads/mnist.py | |
| which is GPL licensed. | |
| """ | |
| def read(dataset = "training", path = "."): |