Skip to content

Commit

Permalink
Update example_distributional.py
Browse files Browse the repository at this point in the history
Adapt comments
  • Loading branch information
BenSaefken authored May 23, 2024
1 parent 863ff48 commit 0cfe3b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_distributional.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Set random seed for reproducibility
np.random.seed(0)

# Number of samples
# Number of samples and features
n_samples = 1000
n_features = 5

Expand All @@ -18,7 +18,7 @@
# Generate target variable
y = np.dot(X, coefficients) + np.random.randn(n_samples)

# Create a DataFrame to store the data
# Create a DataFrame to store the generated data
data = pd.DataFrame(X, columns=[f"feature_{i}" for i in range(n_features)])
data["target"] = y

Expand Down

0 comments on commit 0cfe3b5

Please sign in to comment.