I have a file (access.log) from apache server which is my dataset. and I want to train a model on what is Normal and Abnormal in the file, so I manually added to some line a field that takes one of the two labels (normal | abnormal).I put Normal ==> 0and Abnormal ==> 1Then I created a decision tree classifier Features = [[GET /robots.txt HTTP/1.1, 55],[POST /xmlrpc.php HTTP/1.0, 370]]Labels = [1, 0]clf = tree.DecisionTreeClassifier()clf = clf.fit(Features, Labels)print clf.predict([GET /robots.txt HTTP/1.1,55])The problem is that I can't do it this way as I am working with String values so the compiler shows an error saying: could not convert string to float: GET /robots.txt HTTP/1.1I really want to find a solution to manipulate the log file lines,  extract data for classifier, then train the model and predict the correct decision.Thanks,
Reading from log file and train a model for prediction
machine learning