FunCicada

u/FunCicada


r/MLQuestions•

My data set is comprised of two classes, where each data "point" is a sequence of vectors (ranging from 1000 vectors to 40000+ vectors). Is there a simple classifier to use, or would I have to resort to RNNs?

The vectors within sequences of each class aren't mutually exclusive, and there is a lot of redundancy in the sequences between the two classes.

14

r/learnpython•

I'm reading through some code (Python 2) that sets __metaclass__ to the name of a metaclass. I'm very confused by this, so these are the questions I'm struggling with:

  1. what does __metaclass__ do?

  2. what's the difference between __metaclass__ = MetaClassName and simply inheriting the meta class?

21

r/learnpython•

I'm working on a project and I'm reading through the code, but whenever I see a function parameter I have no idea what kind of object it is. I come from a strong Java background, so this notion of not knowing what a parameter is is very confusing to me. What would be the pythonic way of wrapping my head around this?

102

r/learnprogramming•

I'm working with the following prompt:

Build a console-based (i.e. runs in terminal) unix-compatible interactive card game.

I understand everything about this prompt except "unix-compatiable." What does this mean?

16


r/learnpython•

In the tutorial, Kenneth has code along the lines of:

from requests_html import HTMLSession

session = HTMLSession()
r = session.get('websiteurl')
all_links = r.html.links     # gets links on page

Now here's where I'm confused - the get() method in HTMLSession returns a Response object, but where is html being called from? The Response object doesn't seem to list html as an attribute or as a method. See here for what I'm looking at: https://html.python-requests.org/

65




You've reached the end of this feed.