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.
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:
what does __metaclass__ do?
what's the difference between __metaclass__ = MetaClassName and simply inheriting the meta class?
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?
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/
I have a separate module file with a single function in it with the same name as the file. I get an error when I saw "import func.func" but no error when I say "from func import func". What exactly is the difference between these two import statements?