abhinavohri: hi! this is a long-standing question in python, and I'm sure that everyone has their own opinions
personally, I think it's best to use the second approach, especially if the file uses multiple methods/types from a single module
abhinavohri
ok....Thanks
alastairp
e.g. imagine if we use time.monotonic, and time.time, and time.strptime. personally I think that it's cleaner to just have a single `import time`
there are some cases where the first approach is OK, for example if you _only_ use monotonic, and it's clear where that import comes from, but I don't often use it
Use import statements for packages and modules only, not for individual classes or functions. The namespace management convention is simple. The source of each identifier is indicated in a consistent way; x.Obj says that object Obj is defined in module x.
just looking at some methods of matching genres to mb genres
reosarevok
alastairp: oh, neat
alastairp
this is just a basic Levenshtein distance
note that genres from our datasets are sometimes 'genre/subgenre'
reosarevok
mhm
I think throwing this together first, then asking someone to hand check it makes sense
alastairp
in this case, the match rate (80-100) is matched just on the subgenre part
*70-100
reosarevok
Seems that anything under 90 seems to generally be wrong
alastairp
There are some other matching heuristics that I'm going to try, e.g. some that insist that all words must be there, will fix issues such as alternative punk -> alternative pop
right, most of the time it seems we should just go with an exact match
although bebop/bop was a nice catch
reosarevok
Exact match automatic, show stuff over maybe 85 to a human to confirm
_lucifer
white_shadow: a bit behind schedule. some ui bugs are to be fixed. as soon as that is done will make th release
white_shadow
ok np
alastairp
sounds good to me
white_shadow
Are we writing test cases in the app?
alastairp
194/347 had an exact match anyway, which is pretty nice
what do you think about the genre/subgenre situation?
a single tag to represent the whole thing, or one for genre, one for subgenre? (since MB has many tags that we consider 'subgenres'