Skip to content

Commit f92dbfd

Browse files
committed
Remove print statement
1 parent 72d6bed commit f92dbfd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

anti-patterns/monolithic-function/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def main(file_path: str) -> float:
5757
y_pred = model.predict(X_test)
5858

5959
accuracy = accuracy_score(y_test, y_pred)
60-
print(f"Model Accuracy: {accuracy:.2f}")
6160
return accuracy
6261
```
6362
Sure, if you painstakingly read it line by line, you’ll eventually arrive at this thrilling revelation about what the function does:
@@ -147,7 +146,6 @@ def train_model(X_train: pd.DataFrame, y_train: pd.DataFrame) -> DecisionTreeCla
147146
def evaluate_model(model: DecisionTreeClassifier, X_test: pd.DataFrame, y_test: pd.DataFrame) -> float:
148147
y_pred = model.predict(X_test)
149148
accuracy = accuracy_score(y_test, y_pred)
150-
print(f"Model Accuracy: {accuracy:.2f}")
151149
return accuracy
152150

153151
```

0 commit comments

Comments
 (0)