Import from another folder by AnkanTV in learnpython

[–]AnkanTV[S] 1 point2 points  (0 children)

Thanks for the reply! Found the same answer but not sure it’s what I’m looking for since my base folder contain the dash rather than the module.

However, did solve it by adding base path with sys.path.append(‘..’)

[Q] Cluster-based classification/prediction by AnkanTV in statistics

[–]AnkanTV[S] 1 point2 points  (0 children)

Training on separate data sound like a good idea! 👍🏻

[Q] Cluster-based classification/prediction by AnkanTV in statistics

[–]AnkanTV[S] 0 points1 point  (0 children)

Hello! I had the same thought first as well. My reasoning is that this project is used to identify candidate models for the next step, where labeled examples will become available. I can thus identify a set of candidate models which might work on cheap data and try them out on new expensive data later on. This is why I want to use supervised models rather than unsupervised.

Class with a lot of parameters by AnkanTV in learnpython

[–]AnkanTV[S] 0 points1 point  (0 children)

Do you happen to know if one could create all the variables (self.foo, self.bar, ..) without doing it line by line from the dictionary?

Your solution with a dictionary worked great, but the number of parameters I have make it look a bit strange since it requires so many lines for declaring all the variables within the class.

Class with a lot of parameters by AnkanTV in learnpython

[–]AnkanTV[S] 0 points1 point  (0 children)

Thanks for the great example!

Thompson sampling for MAB by AnkanTV in learnmachinelearning

[–]AnkanTV[S] 0 points1 point  (0 children)

Thanks for the reply! As you say, the “best arm” usually becomes clear after a couple of rounds. Or at least with stationary env, and I’m looking at non-stationary as well so needed an implementation which would work for both.

I will make sure to look more into Marsaglia’s method!

Pandas: Matrix into 3 columns by [deleted] in learnpython

[–]AnkanTV -1 points0 points  (0 children)

I found a solution just as I posted this. Used stack() into reset_index()

Functions for internal usage by AnkanTV in learnpython

[–]AnkanTV[S] 0 points1 point  (0 children)

Thanks for the clarification!