KOSASIH / pi-nexus-autonomous-banking-network

Unused variable found PYL-W0612
Anti-pattern
Major
2 occurrences in this check
12    def train_model(self):
13        X = self.data.drop("target", axis=1)
14        y = self.data["target"]
15        X_train, X_test, y_train, y_test = train_test_split(16            X, y, test_size=0.2, random_state=42
17        )
18        model = RandomForestClassifier(n_estimators=100, random_state=42)
12    def train_model(self):
13        X = self.data.drop("target", axis=1)
14        y = self.data["target"]
15        X_train, X_test, y_train, y_test = train_test_split(16            X, y, test_size=0.2, random_state=42
17        )
18        model = RandomForestClassifier(n_estimators=100, random_state=42)