code
stringlengths
3
6.57k
dag_s3_prefix(dag_id, timestamp)
format(dag_id, timestamp)
__init__(self)
self.create_snake()
create_snake(self)
self.add_segment(position)
add_segment(self, position)
turtle.Turtle(shape="square")
new_segment.color("white")
new_segment.penup()
new_segment.setpos(position)
self.segments.append(new_segment)
reset_snake(self)
segment.hideturtle()
self.segments.clear()
self.create_snake()
extend(self, loot)
range(loot)
self.add_segment(self.segments[-1].position()
move(self)
range(len(self.segments)
goto(self.segments[seg_num - 1].pos()
self.head.forward(MOVE_DISTANCE)
up(self)
self.head.heading()
self.head.setheading(UP)
down(self)
self.head.heading()
self.head.setheading(DOWN)
right(self)
self.head.heading()
self.head.setheading(RIGHT)
left(self)
self.head.heading()
self.head.setheading(LEFT)
autocompletion (i.e. in Jupyter notebooks)
MLTree.add_tree(ml_repo)
ml_repo.tree.models.load()
ml_repo.tree.training_data.history()
function (depending on what object the node represents)
logging.getLogger(__name__)
__init__(self, name, ml_repo, repo_obj = None)
_set(self, path, items)
len(path)
len(path)
setattr(self, path[0], items[0])
hasattr(self, path[0])
getattr(self, path[0])
_set(path[1:], items[1:])
setattr(self, path[0], items[0])
_set(path[1:], items[1:])
version (str, optional)
full_object (bool, optional)
modifier_versions (dict of str to str, optional)
containing_str (str, optional)
name (intended for internal use)
self._repo.get(self._name, version, full_object, modifier_versions, throw_error_not_exist = False)
self.__dict__.values()
hasattr(v,'load')
v.load(version, full_object, modifier_versions, containing_str)
modifications(self, commit=False, commit_message='')
len(diff)
and (self._repo is not None)
self._repo.get(self._name, version=version)
self.__dict__.values()
hasattr(v, 'modifications')
v.modifications(commit, commit_message)
result.update(tmp)
history(self, version = (repo_store.FIRST_VERSION,repo_store.LAST_VERSION)
self._repo.get(self._name, version = version, throw_error_not_exist=False)
isinstance(history, list)
str(r_info)
tmp.append(r)
self.__dict__.values()
isinstance(v, _RepoObjectItem)
v.history(version, repo_info, obj_data)
result.update(tmp2)
len(result)
__call__(self, containing_str=None)
len(self.__dict__)
result.append(self._name)
self.__dict__.values()
isinstance(v, _RepoObjectItem)
v(containing_str)
isinstance(d, str)
result.append(d)
result.extend(d)
_RawDataItem(_RepoObjectItem)
__init__(self, name, ml_repo, repo_obj = None)
super(_RawDataItem,self)
__init__(name, ml_repo, repo_obj)
append(self, x_data, y_data = None)
name (string)
x_data (numpy matrix)
y_data (numpy matrix, optional)
RawData (e.g. different number of x-coordinates)
logger.info('Start appending ' + str(x_data.shape[0])
self._repo.get(self._name)
len(raw_data.x_coord_names)
Exception('Number of columns of x_data of RawData object is not equal to number of columns of additional x_data.')