Posts by Cassiano • 191 points
4 posts
-
3
votes1
answer299
viewsA: Bag of words in Python
Try using the lib Gensim to preprocess your data. It helps to produce the vectorization you need in the Sklearn model input. Try something like that: from gensim.parsing.preprocessing import…
-
1
votes1
answer295
viewsA: What is the difference between Train Test Split and Holdout?
No. Hold out is literally "Hide" part of the dataset, what we do in sklearn or similar libraries using train_test_split. The terms are interchangeable. Take a look at the use of the term in Sklearn…
-
1
votes1
answer150
viewsA: Weak AI, concept and example in software development
Q: Any logic processed by a computer can be considered as Weak AI? A: No. "Computer science defines AI research as the study of 'smart agents': any device that perceives its environment and performs…
-
1
votes1
answer68
viewsA: Problem compiling code in Keras
This code is badly indented and does not execute. In python, this is a deadly error. The first thing you need to do is fix indentation. I get the error: NameError: name 'self' is not defined Second,…