These are chat archives for FreeCodeCamp/DataScience
discussion on how we can use statistical methods to measure and improve the efficacy of http://freeCodeCamp.com
def least_squared_error(x, y, thetta): error = lstsq(x.T.dot(x), x.T.dot(y)) return error
AttributeError: module 'scipy.stats' has no attribute 'chisqprob'
Hey, @bigyankarki! I see you have been looking for stuff! Excellent question! For what I know they are related but not the same. Let me update myself a bit (:blush:) and see if I can find a good explanation? I will try to answer today.
@sabin20 Those kind of errors, you can always try to google them. They will usually take you to StackOverflow. I must say Python is usually very clear with the error description (not always...). It appears that your
scipy.stats doesn't have
About your previous question ("how can we convert string into unique codes?"), again encoding is the answer. The usual from-scratch implementation use a hash table to index the category to its respective encoding. A library like sklearn will provide you with all that (and more) in a module. We have already mentioned some references? Have a look and let me know how it goes?
I will find hard to replicate your errors, @sabin20: I am not trying your exercise. But I will try to help you for sure!
bigyankarki sends brownie points to @evaristoc :sparkles: :thumbsup: :sparkles:
sabin20 sends brownie points to @evaristoc :sparkles: :thumbsup: :sparkles:
data["JOB_TITLE"] = LabelEncoder().fit_transform(data["JOB_TITLE"].astype(str))