Machine Learning - Bob the builder task - How to make???
Im stucked. Please help!!! Task to build a LogisticRegression model. My code looks working. But anyway Im passing only 4 test. 5th and 6th - not passed. It is hidded. And I dont know whats wrong and how to fix. Tried different things, but not successful. Who has passed this? Pls give advice import pandas as pd from sklearn.linear_model import LogisticRegression n = input() n_split= n.split() n_int = int(n_split[0]) X = [] for i in range(n_int): first, second = input().split() first= int(first) second = int(second) X.append([first,second]) y= [] for i in input().split(): i = int(i) y.append(i) x1,x2 = input().split() x1,x2 = int(x1), int(x2) x_pred = [x1, x2] model = LogisticRegression() model.fit(X,y) print(model.predict([x_pred])[0])