In [1]:
import numpy as np
import pandas as pd
from atod import Hero, Heroes, Ability, Abilities
In [2]:
pick = Heroes.from_ids([1, 5, 28, 65, 12])
In [8]:
print('Names =', pick.get_names(), '\n')
print('IDs:')
print(pick.get_ids())
In the few papers I read about DotA binary encoded set of heroes ids were used to represent pick. get_ids()
with binarised=True
returns One-Hot encoded heroes ids on the vector of all the heroes ids.
In [3]:
print(pick.get_ids(binarised=True).shape[0])
get_description()
works the same way it does for single Hero, except name
and id
columns will be removed from description, because result is the sum of parameters between heroes in the Heroes object.
In [5]:
print(pick.get_description(include=['laning', 'role']))