Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

get_data_test.py 294 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
  1. import numpy as np
  2. import imodels
  3. def test_get_data():
  4. X, y, feature_names = imodels.get_clean_dataset('friedman1', data_source='synthetic')
  5. assert X.shape[0] == 200
  6. assert isinstance(X, np.ndarray)
  7. assert isinstance(y, np.ndarray)
  8. assert isinstance(feature_names, list)
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...