Skip to content

Commit

Permalink
update: add requirements for 593
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed Apr 21, 2024
1 parent 6840953 commit 2979b87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data/raw/f_593_niklas.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def f_593(data, columns, target_column):
"""
Perform a logistic regression on a DataFrame to predict a specific target column.
Parameters:
- data (np.array): The input data as a NumPy array.
- columns (list): The list of column names.
Expand All @@ -16,6 +16,11 @@ def f_593(data, columns, target_column):
Returns:
- accuracy (float): The accuracy of the logistic regression model.
Requirements:
- pandas
- numpy
- sklearn
Example:
>>> np.random.seed(42)
>>> data = np.random.randint(0, 100, size=(100, 4)) # Using np to generate random data
Expand Down

0 comments on commit 2979b87

Please sign in to comment.