Skip to content

Commit

Permalink
update ata
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed Apr 14, 2024
1 parent b480156 commit 08a3199
Show file tree
Hide file tree
Showing 15 changed files with 315 additions and 315 deletions.
6 changes: 3 additions & 3 deletions data/clean/f_357_jenny.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def f_357(n_samples=100, n_features=10, random_seed=None):
>>> predictions, coefficients, intercept, mse = f_357(100, 5, random_seed=42)
>>> predictions[:3]
array([ 180.79207843, -295.0210232 , 118.23799221])
>>> mse
0.011344800318058566
>>> round(mse, 4)
0.0113
"""
# Generate synthetic data
X, y = datasets.make_regression(
Expand Down Expand Up @@ -130,7 +130,7 @@ def test_case_5(self):
self.assertEqual(
predictions.shape[0], 20000
) # 20% of 100000 samples for testing
self.assertEqual(mse, 0.010142327812255192)
self.assertAlmostEqual(mse, 0.010142327812255192, places=4)

def test_case_6(self):
# Test output shapes
Expand Down
612 changes: 306 additions & 306 deletions data/open-eval.jsonl

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions data/processed/f_357_jenny_w_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def f_357(n_samples=100, n_features=10, random_seed=None):
>>> predictions, coefficients, intercept, mse = f_357(100, 5, random_seed=42)
>>> predictions[:3]
array([ 180.79207843, -295.0210232 , 118.23799221])
>>> mse
0.011344800318058566
>>> round(mse, 4)
0.0113
"""
# Generate synthetic data
X, y = datasets.make_regression(
Expand Down Expand Up @@ -124,7 +124,7 @@ def test_case_5(self):
self.assertEqual(
predictions.shape[0], 20000
) # 20% of 100000 samples for testing
self.assertEqual(mse, 0.010142327812255192)
self.assertAlmostEqual(mse, 0.010142327812255192, places=4)

def test_case_6(self):
# Test output shapes
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions data/raw/f_357_jenny.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def f_357(n_samples=100, n_features=10, random_seed=None):
>>> predictions, coefficients, intercept, mse = f_357(100, 5, random_seed=42)
>>> predictions[:3]
array([ 180.79207843, -295.0210232 , 118.23799221])
>>> mse
0.011344800318058566
>>> round(mse, 4)
0.0113
"""
# Generate synthetic data
X, y = datasets.make_regression(
Expand Down Expand Up @@ -130,7 +130,7 @@ def test_case_5(self):
self.assertEqual(
predictions.shape[0], 20000
) # 20% of 100000 samples for testing
self.assertEqual(mse, 0.010142327812255192)
self.assertAlmostEqual(mse, 0.010142327812255192, places=4)

def test_case_6(self):
# Test output shapes
Expand Down

0 comments on commit 08a3199

Please sign in to comment.