code stringlengths 3 6.57k |
|---|
start(self) |
self.initialize() |
self.initializePygame() |
self.checkEvents() |
self.getBestAction() |
getNewMap(self.block_factory.cur_block, action, action[1], self.field_map) |
self.update() |
self.draw() |
QLearning() |
train.train() |
QLGame() |
game.start() |
VatNumberCheckResult(object) |
file_path() |
input("Enter the file name:") |
pop_values(filename) |
open(file_name, "r") |
print("File Does not exist, please check your file name") |
exit() |
line.strip("\n") |
line.find("From") |
line.find("@") |
line.find("@") |
main() |
file_path() |
pop_values(name) |
len(i) |
dictionary.values() |
dictionary.keys() |
zip(dictionary.keys() |
dictionary.values() |
plt.bar(j, i, align='center', alpha=0.5) |
plt.ylabel('Number of messages') |
plt.title('Emails per day') |
plt.show() |
main() |
sol(records, n) |
range(0, n*4, 4) |
sum(map(int, records[ni+1:ni+4]) |
res.append((records[ni], am) |
print(name, end=" ") |
print(marks) |
__init__(self, mapped_base: int, virtual_addr: int, symbol_name: Optional[str]=None) |
__eq__(self, other) |
isinstance(other, ComponentFunction) |
__hash__(self) |
hash((ComponentFunction, self.mapped_base, self.virtual_addr) |
__init__(self, name=None) |
__eq__(self, other) |
isinstance(other, ComponentTreeNode) |
set(self.functions) |
set(other.functions) |
__hash__(self) |
hash(tuple(self.components) |
hash(tuple(sorted((f.mapped_base + f.virtual_addr) |
__init__(self, root: Optional[ComponentTreeNode]=None) |
str_between(s, start, end) |
return (s.split(start) |
split(end) |
is_stat_file_version(file_name, version) |
file_name.startswith("stats_{}_gen".format(version) |
file_name.endswith(".h5") |
__init__(self, versions, directory, verbose=True) |
self.get_stat_files(versions, directory) |
print("Loading files:") |
print(directory + f) |
self.load_stats('generation_stats') |
self.load_stats('game_stats') |
self.load_stats('self_play_stats') |
get_stat_files(self, versions, directory) |
reversed(versions) |
os.listdir(directory) |
is_stat_file_version(f, version) |
list(sorted(files) |
load_stats(self, key_name) |
str_between(f, "_gen", ".h5") |
pd.read_hdf(path, key=key_name) |
int(generation) |
df_list.append(df) |
pd.concat(df_list, ignore_index=True) |
pd.DataFrame() |
first_move_stats(self) |
values (an array) |
found_target_on_first_move(self) |
return (self.first_move_stats() |
lost_but_found_target_on_first_move(self) |
self.found_target_on_first_move() |
win_but_did_not_find_target_on_first_move(self) |
self.found_target_on_first_move() |
TrainingStates(versions, save_dir) |
pprint(cube_stats.generation_stats) |
pprint(np.mean(cube_stats.lost_but_found_target_on_first_move() |
pprint(np.mean(cube_stats.win_but_did_not_find_target_on_first_move() |
PM100D (Ni-Visa) |
visa.ResourceManager() |
list_resources() |
PM100D(MessageBasedDriver) |
Feat(read_once=True) |
idn(self) |
self.query('*IDN?') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.