Logistic Regression | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Logistic Regression

#I can't understand what I should do with lists for building Logistic regression model. When I try make DataFrames I get mistake. Task You are given a feature matrix and a single datapoint to predict. Your job will be to build a Logistic Regression model with the feature matrix and make a prediction (1 or 0) of the single datapoint. Input Format First line: Number of data points in the feature matrix (n) Next n lines: Values of the row in the feature matrix, separated by spaces Next line: Target values separated by spaces Final line: Values (separated by spaces) of a single datapoint without a target value Output Format Either 1 or 0 Sample Input 6 1 3 3 5 5 7 3 1 5 3 7 5 1 1 1 0 0 0 2 4 Sample Output 1

9th Oct 2021, 9:37 PM
Ilya Nikitin
1 Antwort
- 1
Tag the appropriate language and show your attempt to get answers for your question. All the best =)
1st Nov 2021, 6:43 AM
Rishi
Rishi - avatar