query
stringlengths
10
2k
document
stringlengths
20
51.2k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Gets the floor of this Chart. Returns a Floor object that represents the walls of a 3D chart.
def floor(self): return self.container['floor']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def floor(self):\n return self._floor", "def build_floor(tile):\n rtn = bmesh.new()\n rtn.from_object(bpy.data.objects['FLOOR_CENTER'], bpy.context.scene)\n BmeshFactory.add_floor_corners(rtn, tile)\n rtn.from_object(bpy.data.objects[tile.terrain_type().name], bpy.context.scene...
[ "0.68585765", "0.6825907", "0.618636", "0.5739427", "0.5696196", "0.5618267", "0.5481646", "0.547839", "0.5463278", "0.5455132", "0.54339147", "0.53986925", "0.53722566", "0.534703", "0.5314356", "0.5313804", "0.5270356", "0.5215145", "0.5190766", "0.51876855", "0.5186105", ...
0.7297509
0
Sets the floor of this Chart. Returns a Floor object that represents the walls of a 3D chart.
def floor(self, floor): self.container['floor'] = floor
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_floor(tile):\n rtn = bmesh.new()\n rtn.from_object(bpy.data.objects['FLOOR_CENTER'], bpy.context.scene)\n BmeshFactory.add_floor_corners(rtn, tile)\n rtn.from_object(bpy.data.objects[tile.terrain_type().name], bpy.context.scene)\n BmeshFactory.add_ceiling_center_below(r...
[ "0.7025631", "0.64432305", "0.6358281", "0.61801445", "0.6172596", "0.6166089", "0.6040359", "0.5965775", "0.5629787", "0.5589419", "0.5559281", "0.5554989", "0.5454116", "0.5342804", "0.5342617", "0.52578473", "0.5226809", "0.51752144", "0.515482", "0.51431465", "0.5126887",...
0.70995337
0
Gets the plot_empty_cells_type of this Chart. Gets and sets how to plot the empty cells.
def plot_empty_cells_type(self): return self.container['plot_empty_cells_type']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_empty_cells_type(self, plot_empty_cells_type):\n\n self.container['plot_empty_cells_type'] = plot_empty_cells_type", "def empty_cell(cls):\n return SPACE", "def getNonEmptyCells(self):\n nonemptys = []\n for ri in range(self.nRow):\n for ci in range(self.nCol):\n...
[ "0.83771044", "0.61566824", "0.57523906", "0.5737792", "0.5721296", "0.5519503", "0.55076003", "0.5445618", "0.5314232", "0.5312282", "0.52586675", "0.5220021", "0.5200222", "0.51876616", "0.5091736", "0.5091736", "0.5083365", "0.5064246", "0.5020643", "0.5018522", "0.5008644...
0.8641243
0
Gets the auto_scaling of this Chart. True if Microsoft Excel scales a 3D chart so that it's closer in size to the equivalent 2D chart. The RightAngleAxes property must be True.
def auto_scaling(self): return self.container['auto_scaling']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shouldAutoScale(self):\n if self.autoscale is not None:\n return self.autoscale\n # preserve backwards compatability for zenpacks\n for dp in self.graphPoints():\n if dp.meta_type == 'DataPointGraphPoint' and dp.shouldAutoScale():\n return True\n ...
[ "0.6625953", "0.59639335", "0.59351146", "0.59025276", "0.59025276", "0.59025276", "0.59025276", "0.59025276", "0.5725583", "0.57057136", "0.5669458", "0.559641", "0.55919", "0.5387399", "0.5352564", "0.5326501", "0.53224117", "0.53213", "0.52708364", "0.52691364", "0.5269136...
0.54387003
13
Gets the series_axis of this Chart. Gets the chart's series axis.
def series_axis(self): return self.container['series_axis']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def series_axis(self, series_axis):\n\n self.container['series_axis'] = series_axis", "def value_axis(self):\n return self.container['value_axis']", "def get_axis_x(self):\r\n return self.__x_axis", "def axis_name(self):\n return self._axis_name", "def category_axis(self):\n ...
[ "0.68538064", "0.68479186", "0.6795304", "0.66085345", "0.65533036", "0.64507806", "0.6449253", "0.6403238", "0.63888705", "0.6317502", "0.6317502", "0.61996347", "0.6193292", "0.6143542", "0.61406875", "0.6105442", "0.60842043", "0.59889686", "0.59375405", "0.59201336", "0.5...
0.89529663
0
Gets the value_axis of this Chart. Gets the chart's Y axis.
def value_axis(self): return self.container['value_axis']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_axis_y(self):\r\n return self.__y_axis", "def yaxis(self):\n return self._yaxis", "def yaxis ( self ) :\n return self.__yaxis", "def yaxis ( self ) :\n return self.__yaxis", "def y(self):\n return self.axes[0]", "def second_value_axis(self):\n return se...
[ "0.82691234", "0.8028384", "0.7970512", "0.7970512", "0.7301325", "0.7019599", "0.6908", "0.674729", "0.67439437", "0.67205894", "0.6678855", "0.6645708", "0.6623763", "0.65652585", "0.65652585", "0.65652585", "0.6522983", "0.6447757", "0.64283645", "0.6313297", "0.63088226",...
0.7891483
4
Sets the value_axis of this Chart. Gets the chart's Y axis.
def value_axis(self, value_axis): self.container['value_axis'] = value_axis
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_axis_y(self):\r\n return self.__y_axis", "def value_axis(self):\n return self.container['value_axis']", "def yaxis ( self ) :\n return self.__yaxis", "def yaxis ( self ) :\n return self.__yaxis", "def yaxis(self):\n return self._yaxis", "def set_axis_y(self, n...
[ "0.6857156", "0.67177725", "0.6653436", "0.6653436", "0.6630959", "0.63341635", "0.6307797", "0.62369335", "0.62369335", "0.6118378", "0.60618883", "0.6044267", "0.6005846", "0.5961214", "0.59044015", "0.57333726", "0.5729426", "0.5685113", "0.5624018", "0.5584135", "0.556636...
0.7445971
0
Gets the is3_d of this Chart. Indicates whether the chart is a 3d chart.
def is3_d(self): return self.container['is3_d']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is3_d(self, is3_d):\n\n self.container['is3_d'] = is3_d", "def is3DImage(self):\n\t\treturn self.is3D", "def Has3d(self, *args):\n return _Adaptor3d.Adaptor3d_TopolTool_Has3d(self, *args)", "def is3D(data):\n return data.find(\"x3\") != -1 and data.find(\"y3\") != -1 and data.find(\"...
[ "0.7924785", "0.7774755", "0.7687195", "0.73662615", "0.6950406", "0.668006", "0.61513186", "0.61176574", "0.607504", "0.6061392", "0.6039504", "0.60167295", "0.5998295", "0.59356755", "0.58964574", "0.5675103", "0.5635714", "0.5531573", "0.5473794", "0.5472625", "0.5458389",...
0.9116025
0
Gets the chart_area of this Chart. Gets the chart area in the worksheet
def chart_area(self): return self.container['chart_area']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_area(self):\n return self.container['plot_area']", "def get_area(self):\n return self._area", "def get_area(self):\n raise NotImplementedError()", "def area(self):\n return self._ned_shape.area", "def get_board_area(self):\n return self._board_area", "def getAr...
[ "0.7873417", "0.7148364", "0.6540973", "0.64908594", "0.64819795", "0.64178115", "0.64178115", "0.6295288", "0.6250077", "0.6244996", "0.6242909", "0.6225418", "0.61858386", "0.6109363", "0.60816866", "0.6063815", "0.6016624", "0.6014897", "0.60064304", "0.5917504", "0.582361...
0.8605396
0
Sets the chart_area of this Chart. Gets the chart area in the worksheet
def chart_area(self, chart_area): self.container['chart_area'] = chart_area
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chart_area(self):\n return self.container['chart_area']", "def plot_area(self, plot_area):\n\n self.container['plot_area'] = plot_area", "def plot_area(self):\n return self.container['plot_area']", "def set_area(self, area=0.0):\n self.area = area", "def area_chart(\n ...
[ "0.7557486", "0.7247773", "0.7146775", "0.6362938", "0.5979064", "0.5930998", "0.5580663", "0.5550072", "0.55159754", "0.54945326", "0.54945326", "0.54768956", "0.54685456", "0.54664046", "0.5451943", "0.5448343", "0.539384", "0.5374796", "0.5339314", "0.52925813", "0.5281316...
0.79693776
0
Gets the elevation of this Chart. Represents the elevation of the 3D chart view, in degrees.
def elevation(self): return self.container['elevation']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def elevation(self):\n return self.altitude - self.heightAboveGround", "def get_elevation(self):\n return self.elevation", "def _elevation(self, node):\n return self.graph_provider.get_coords(node)['z']", "def imu_get_elevation(self):\n return self.imu.get_elevation()", "def ele...
[ "0.7723772", "0.7659615", "0.72158325", "0.7149421", "0.7065687", "0.7064502", "0.66713357", "0.6422295", "0.6417205", "0.6318496", "0.6186593", "0.6182814", "0.6104886", "0.6048946", "0.6022979", "0.599301", "0.5912329", "0.59065765", "0.5838355", "0.5827547", "0.5816217", ...
0.7801716
0
Sets the elevation of this Chart. Represents the elevation of the 3D chart view, in degrees.
def elevation(self, elevation): self.container['elevation'] = elevation
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def platform_set_elevation(self, elevation):\n self.platform.set_elevation(elevation)", "def view_elevation(self):\n if self.elevation_toggle:\n return rasterize(self.tri_mesh, aggregator=ds.mean('z'), precompute=True)\n else:\n return hv.Curve([])", "def set_elevatio...
[ "0.6958408", "0.6154178", "0.6086923", "0.60645837", "0.6010928", "0.597471", "0.58604556", "0.583396", "0.5747601", "0.57092553", "0.56870145", "0.55940723", "0.55833215", "0.5532852", "0.5525162", "0.5486065", "0.5484944", "0.5483877", "0.54065454", "0.5382217", "0.5324019"...
0.7542255
0
Gets the type of this Chart. Gets or sets a chart's type.
def type(self): return self.container['type']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getDataSetType(self):\n return self.__data_set_type__", "def type(self) -> MetricType:\n return self._type", "def get_type(self):\n return self.type", "def get_type(self):\n return self.type", "def get_type(self):\n return self._type", "def get_type(self):\n ...
[ "0.67734003", "0.66319305", "0.6619833", "0.6619833", "0.6596342", "0.6596342", "0.6586112", "0.6533461", "0.6517126", "0.6431943", "0.6405355", "0.63704365", "0.63633585", "0.63446295", "0.63302356", "0.63209724", "0.6306856", "0.6297372", "0.626749", "0.6243519", "0.6243519...
0.6363722
12
Sets the type of this Chart. Gets or sets a chart's type.
def type(self, type): self.container['type'] = type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setDataSetType(self, type):\n self.__data_set_type__ = type", "def set_type(self, type):\n self._type = type", "def set_type(self, type):\n self.type = type", "def set_type(self, type):\n self.type = type", "def set_type(self, type, asset=None):\n self._set_property('...
[ "0.7719958", "0.7430346", "0.7410844", "0.7410844", "0.71022654", "0.70922476", "0.70645946", "0.6950499", "0.6950499", "0.6950499", "0.68131065", "0.6786412", "0.6782186", "0.6741375", "0.6713046", "0.6713046", "0.6713046", "0.6713046", "0.6713046", "0.6713046", "0.6713046",...
0.6685091
42
Gets the title of this Chart. Gets the chart's title.
def title(self): return self.container['title']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_title(self):\n\n return self._title", "def getTitle(self):\n\n return self._title", "def GetTitle(self):\n return self._title", "def getTitle(self):\n return self._title", "def get_title(self):\n return self._title", "def get_title(self):\n return self._t...
[ "0.78386426", "0.7831065", "0.7775894", "0.7749347", "0.7745418", "0.7745418", "0.7745418", "0.7688116", "0.7647933", "0.7621581", "0.7598816", "0.7598816", "0.7598816", "0.756205", "0.75404376", "0.7534396", "0.753106", "0.753106", "0.7513745", "0.7513745", "0.7513745", "0...
0.7462241
29
Gets the walls of this Chart. Returns a Walls object that represents the walls of a 3D chart.
def walls(self): return self.container['walls']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def walls(self):\n return self._walls", "def walls(self):\n return self._walls", "def getWalls(self):\n return self.data.layout.walls", "def getWalls(self):\n #print 'TYPE CHECK!!!!!!',self.listener.walls\n return self.listener.walls", "def add_walls(self):\n for x...
[ "0.78542995", "0.78542995", "0.7833204", "0.6902122", "0.66291076", "0.6487961", "0.64774644", "0.64774644", "0.6295101", "0.62863094", "0.62234545", "0.61318904", "0.6061115", "0.60163873", "0.6002389", "0.5993383", "0.5988544", "0.5911977", "0.58307946", "0.58261526", "0.57...
0.79447675
0
Sets the walls of this Chart. Returns a Walls object that represents the walls of a 3D chart.
def walls(self, walls): self.container['walls'] = walls
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_channel_walls(self,walls=['left','right','top','bottom']):\n solid_list_a = np.empty(0).flatten()\n solid_list_b = np.empty(0).flatten()\n solid_list_c = np.empty(0).flatten()\n solid_list_d = np.empty(0).flatten()\n\n for w in walls:\n if w=='right':\n ...
[ "0.7627572", "0.7627572", "0.7142801", "0.7142801", "0.7116654", "0.69327205", "0.6881767", "0.685241", "0.6732124", "0.65100795", "0.64341056", "0.63891226", "0.635232", "0.61047935", "0.6030261", "0.5891078", "0.58216023", "0.5779601", "0.57667035", "0.5743989", "0.5713031"...
0.72680473
2
Gets the back_wall of this Chart.
def back_wall(self): return self.container['back_wall']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def back_wall(self, back_wall):\n\n self.container['back_wall'] = back_wall", "def side_wall(self):\n return self.container['side_wall']", "def background(self) -> str:\n return self._back_spec", "def wall_covering(self):\n return self._wall_covering", "def bottom(self) -> Face:...
[ "0.6935282", "0.669824", "0.6210343", "0.613745", "0.60153526", "0.599395", "0.59916955", "0.5907268", "0.58653873", "0.58320093", "0.5770433", "0.5763613", "0.5727099", "0.5727099", "0.57125413", "0.57125413", "0.5698106", "0.566356", "0.56422377", "0.56413096", "0.5631395",...
0.87975264
0
Gets the chart_data_table of this Chart. Represents the chart data table.
def chart_data_table(self): return self.container['chart_data_table']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_data_for_table(self):\n self._set_data_for_table()\n return self._data_for_table", "def chart_data_table(self, chart_data_table):\n\n self.container['chart_data_table'] = chart_data_table", "def get_table_data(self):\n return self.table_data", "def _get_dataset_table(self)...
[ "0.7181275", "0.6977397", "0.69386494", "0.6596031", "0.6407954", "0.61100286", "0.61100286", "0.60614693", "0.60554296", "0.595208", "0.5929333", "0.5869886", "0.58556145", "0.5824034", "0.5790223", "0.57789844", "0.57664394", "0.57304525", "0.5695738", "0.5686158", "0.56835...
0.87442356
0
Gets the height_percent of this Chart. Returns or sets the height of a 3D chart as a percentage of the chart width (between 5 and 500 percent).
def height_percent(self): return self.container['height_percent']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_height(self, p1: Point3D, p2: Point3D, p3: Point3D) -> float:\n return self._heightmap[self._get_heightmap_key(p1,p2,p3)]", "def height(self):\n return self.client.call('GET', self.name + 'height')", "def height_percent(self, height_percent):\n\n self.container['height_percent'] = ...
[ "0.654223", "0.6412868", "0.6389926", "0.614486", "0.61166364", "0.61166364", "0.6102924", "0.6096739", "0.60940975", "0.6081445", "0.60419667", "0.5996274", "0.5996274", "0.59672856", "0.5958981", "0.594694", "0.5929585", "0.5872475", "0.5855989", "0.5840962", "0.5829167", ...
0.769139
0
Gets the gap_width of this Chart. Returns or sets the space between bar or column clusters, as a percentage of the bar or column width. The value of this property must be between 0 and 500.
def gap_width(self): return self.container['gap_width']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gap_width(self, gap_width):\n\n self.container['gap_width'] = gap_width", "def gap_depth(self):\n return self.container['gap_depth']", "def gutter_spacing(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"gutter_spacing\")", "def gutter_spacing(self) -> Optional[pulum...
[ "0.6783103", "0.6024931", "0.6002563", "0.6002563", "0.6002563", "0.5629314", "0.5583817", "0.551662", "0.54653054", "0.54349256", "0.541683", "0.53791904", "0.5374055", "0.537405", "0.53251976", "0.5306463", "0.52902585", "0.5279692", "0.5248972", "0.5230462", "0.5220304", ...
0.7797115
0
Sets the gap_width of this Chart. Returns or sets the space between bar or column clusters, as a percentage of the bar or column width. The value of this property must be between 0 and 500.
def gap_width(self, gap_width): self.container['gap_width'] = gap_width
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gap_width(self):\n return self.container['gap_width']", "def SetGap(self, *args):\n return _Bnd.Bnd_Box_SetGap(self, *args)", "def percent(self, value) -> 'Gap':\n raise_not_number(value)\n self.gap = '{}%'.format(value)\n return self", "def setBarWidth(w):\n dislin....
[ "0.65495497", "0.56762224", "0.5601672", "0.5582215", "0.5534615", "0.54939276", "0.5477823", "0.5369707", "0.5249641", "0.5249641", "0.5249641", "0.51922274", "0.51622874", "0.5155351", "0.49794152", "0.4934455", "0.49137262", "0.48914492", "0.4760136", "0.4727421", "0.46895...
0.7718396
0
Gets the is_rectangular_cornered of this Chart. Gets or sets a value indicating whether the chart displays a data table.
def is_rectangular_cornered(self): return self.container['is_rectangular_cornered']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_rectangular_cornered(self, is_rectangular_cornered):\n\n self.container['is_rectangular_cornered'] = is_rectangular_cornered", "def is_rectal(self):\n return bool(self.locations and set(self.locations) <= set(StandardTerminology.RECTAL_LOCATIONS)) \\\n or bool(self.depth and 4 ...
[ "0.62726337", "0.5520752", "0.52574265", "0.5148168", "0.50851893", "0.49924916", "0.49641195", "0.48880953", "0.48789996", "0.4869113", "0.48523268", "0.47774187", "0.47621164", "0.47523952", "0.47493142", "0.4748344", "0.4713171", "0.47124332", "0.47063497", "0.47063497", "...
0.73643726
0
Gets the second_category_axis of this Chart. Gets the chart's second X axis.
def second_category_axis(self): return self.container['second_category_axis']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def second_value_axis(self):\n return self.container['second_value_axis']", "def second_category_axis(self, second_category_axis):\n\n self.container['second_category_axis'] = second_category_axis", "def category_axis(self):\n return self.container['category_axis']", "def series_axis(sel...
[ "0.75506306", "0.74878836", "0.6967185", "0.6230474", "0.6178736", "0.5817752", "0.5443492", "0.5418221", "0.5413256", "0.54079103", "0.54074174", "0.5391521", "0.53760326", "0.53448397", "0.53448397", "0.53222466", "0.53222466", "0.5225685", "0.5175034", "0.51677513", "0.516...
0.872339
0
Sets the second_category_axis of this Chart. Gets the chart's second X axis.
def second_category_axis(self, second_category_axis): self.container['second_category_axis'] = second_category_axis
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def second_category_axis(self):\n return self.container['second_category_axis']", "def second_value_axis(self, second_value_axis):\n\n self.container['second_value_axis'] = second_value_axis", "def second_value_axis(self):\n return self.container['second_value_axis']", "def category_axis...
[ "0.75573033", "0.7183681", "0.6473712", "0.5977829", "0.55613416", "0.54844403", "0.5474343", "0.54479337", "0.5294534", "0.5027271", "0.48899424", "0.47870097", "0.46774778", "0.45931518", "0.4592702", "0.45326248", "0.45239884", "0.44851235", "0.4475556", "0.44675037", "0.4...
0.844217
0
Gets the second_value_axis of this Chart. Gets the chart's second Y axis.
def second_value_axis(self): return self.container['second_value_axis']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def second_category_axis(self):\n return self.container['second_category_axis']", "def second_value_axis(self, second_value_axis):\n\n self.container['second_value_axis'] = second_value_axis", "def get_axis_y(self):\r\n return self.__y_axis", "def yaxis ( self ) :\n return self._...
[ "0.77116776", "0.7651394", "0.71315634", "0.7030814", "0.7030814", "0.7023824", "0.69007784", "0.67238533", "0.6469987", "0.644867", "0.6444963", "0.6338375", "0.6219463", "0.62018454", "0.6048766", "0.6027914", "0.5983923", "0.5949381", "0.5908362", "0.58930033", "0.5885058"...
0.88811606
0
Sets the second_value_axis of this Chart. Gets the chart's second Y axis.
def second_value_axis(self, second_value_axis): self.container['second_value_axis'] = second_value_axis
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def second_value_axis(self):\n return self.container['second_value_axis']", "def second_category_axis(self, second_category_axis):\n\n self.container['second_category_axis'] = second_category_axis", "def secondYAxis(requestContext, seriesList):\n for series in seriesList:\n series.options['se...
[ "0.78189594", "0.72941", "0.67018855", "0.63562757", "0.6346561", "0.5950423", "0.591936", "0.591936", "0.5918899", "0.5887072", "0.58539426", "0.58538795", "0.58538795", "0.5843382", "0.5769114", "0.57154536", "0.56657714", "0.5608658", "0.5581914", "0.5566391", "0.5513421",...
0.8643238
0
Gets the placement of this Chart. Represents the way the chart is attached to the cells below it.
def placement(self): return self.container['placement']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_position(self):\n return self._border.get_position()", "def position(self):\n return self.properties.get('position')", "def positioning(self):\n pass", "def Position(self):\n\n return self.position", "def position(self):\n return self.__position", "def p...
[ "0.6449802", "0.63444024", "0.6171981", "0.6146799", "0.6064858", "0.60635114", "0.60635114", "0.60635114", "0.6061547", "0.6056308", "0.6056308", "0.6056308", "0.6056308", "0.6056308", "0.6056308", "0.6056308", "0.6056308", "0.6056308", "0.6056308", "0.6056308", "0.6056308",...
0.69478977
0
Gets the name of this Chart. Gets and sets the name of the chart.
def name(self): return self.container['name']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def assemble_chart(self):\n return self.name", "def get_name(self):\n\n return self._name", "def name(self) -> str:\n return self.data['name']", "def get_name(self) -> str:\n return self._name", "def get_name(self) -> str:\n return self._name", "def axis_name(self):\n ...
[ "0.7291119", "0.6738389", "0.67173016", "0.6691727", "0.6691727", "0.6685783", "0.66788423", "0.6674804", "0.6674804", "0.66623914", "0.66623914", "0.6657409", "0.66550684", "0.66379386", "0.663532", "0.663532", "0.663532", "0.663532", "0.663532", "0.663532", "0.663532", "0...
0.0
-1
Sets the name of this Chart. Gets and sets the name of the chart.
def name(self, name): self.container['name'] = name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_name(self, name):\n self.name = name\n self.labels.change_name(name)", "def SetName(self, name):\n self.name = name", "def set_name(self, name):\n self._name = name", "def set_name(self, name: str):\n self._name = name", "def set_name(self, name):\n self.na...
[ "0.763297", "0.750254", "0.7445965", "0.7349053", "0.73449934", "0.73449934", "0.73449934", "0.73449934", "0.73449934", "0.72964567", "0.72964567", "0.7250857", "0.72287893", "0.7196824", "0.7133734", "0.7098142", "0.7039455", "0.70189714", "0.69780177", "0.69780177", "0.6948...
0.0
-1
Gets the print_size of this Chart. Gets and sets the printed chart size.
def print_size(self): return self.container['print_size']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def print_size(self, print_size):\n\n self.container['print_size'] = print_size", "def size(self):\n return self.properties.get('size')", "def get_printable_size(self):\n size = self.size\n prefix = ''\n for (s, l) in [(1024*1024*1024, 'GB'), (1024*1024, 'MB'), (1024, 'KB')]:...
[ "0.7165989", "0.6347942", "0.6153847", "0.6049688", "0.6007983", "0.599446", "0.59844446", "0.5955973", "0.59362036", "0.59362036", "0.59362036", "0.59174776", "0.591061", "0.5886632", "0.5886632", "0.5886632", "0.5885812", "0.5882212", "0.5870323", "0.5870065", "0.5861971", ...
0.74650323
0
Sets the print_size of this Chart. Gets and sets the printed chart size.
def print_size(self, print_size): self.container['print_size'] = print_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_size(self, size):\n self.dtSize = size", "def font_size(self, font_size):\n\n self._font_size = font_size", "def set_size(self, size):\n \n self.width = size[0]\n self.height = size[1]", "def setsize(self, size):\n self.__size = size", "def setFontSize( sel...
[ "0.64107925", "0.6300843", "0.62455505", "0.623931", "0.60931385", "0.6089514", "0.6072572", "0.6061421", "0.6061421", "0.6061421", "0.6061421", "0.60367036", "0.6035413", "0.60247934", "0.60153806", "0.59928536", "0.59909016", "0.5950999", "0.5927661", "0.5927661", "0.589190...
0.81826115
0
Gets the gap_depth of this Chart. Gets or sets the distance between the data series in a 3D chart, as a percentage of the marker width.The value of this property must be between 0 and 500.
def gap_depth(self): return self.container['gap_depth']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gap_depth(self, gap_depth):\n\n self.container['gap_depth'] = gap_depth", "def gap_width(self):\n return self.container['gap_width']", "def depth(self):\n return _libsbml.Dimensions_depth(self)", "def getDepth(self):\n return _libsbml.Dimensions_getDepth(self)", "def zone_de...
[ "0.64946103", "0.6362887", "0.5981092", "0.5891324", "0.5672191", "0.5669634", "0.5602828", "0.55144936", "0.5482961", "0.54710054", "0.54710054", "0.546397", "0.5439331", "0.54060614", "0.5380975", "0.5380071", "0.5361356", "0.53384465", "0.53136444", "0.5311065", "0.5305897...
0.7467216
0
Sets the gap_depth of this Chart. Gets or sets the distance between the data series in a 3D chart, as a percentage of the marker width.The value of this property must be between 0 and 500.
def gap_depth(self, gap_depth): self.container['gap_depth'] = gap_depth
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gap_depth(self):\n return self.container['gap_depth']", "def gap_width(self, gap_width):\n\n self.container['gap_width'] = gap_width", "def setDepth(self, *args):\n return _CompuCell.Potts3D_setDepth(self, *args)", "def set_depth(self, new_depth):\n self.caravan_depth = new_de...
[ "0.59104484", "0.59094954", "0.55319005", "0.5152482", "0.5132847", "0.4958666", "0.49575222", "0.49508747", "0.48477077", "0.47308692", "0.47161114", "0.467676", "0.46560404", "0.46153745", "0.46127862", "0.45101786", "0.45095387", "0.44717553", "0.4454912", "0.44494364", "0...
0.7611664
0
Gets the rotation_angle of this Chart. Represents the rotation of the 3D chart view (the rotation of the plot area around the zaxis, in degrees).
def rotation_angle(self): return self.container['rotation_angle']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rotation(self):\n\n return self._rotation", "def rotation(self):\n return self._rotation", "def rotation(self):\n return self._rotation", "def rotation(self):\n return self._rotation", "def rotation(self):\n return self._rotation", "def rotation(self):\n retu...
[ "0.73648113", "0.73231024", "0.73231024", "0.73231024", "0.73231024", "0.73231024", "0.73231024", "0.73231024", "0.73231024", "0.73231024", "0.73231024", "0.73231024", "0.7142682", "0.7033034", "0.69279325", "0.68647957", "0.68380046", "0.680133", "0.67725974", "0.6714074", "...
0.7976233
0
Sets the rotation_angle of this Chart. Represents the rotation of the 3D chart view (the rotation of the plot area around the zaxis, in degrees).
def rotation_angle(self, rotation_angle): self.container['rotation_angle'] = rotation_angle
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_rotation(self, angle):\n self._rotation = angle\n self._reset_slot_bounds()", "def setRotation(self, angle=0.0):\n axis = (0, 0, 1)\n oldp = self.transform.pos\n newpos = oldp + glm.vec3(0, -40, 0)\n self.transform.setPos(newpos)\n self.transform.setRot(gl...
[ "0.7147232", "0.6621289", "0.64075977", "0.6401517", "0.6374768", "0.6348282", "0.62259555", "0.6169425", "0.6123798", "0.6109685", "0.6081182", "0.6065031", "0.60437703", "0.6027689", "0.6014828", "0.59649783", "0.5960967", "0.59196216", "0.58904994", "0.58568", "0.581727", ...
0.7417396
0
Gets the plot_area of this Chart. Gets the chart's plot area which includes axis tick lables.
def plot_area(self): return self.container['plot_area']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chart_area(self):\n return self.container['chart_area']", "def get_area(self):\n return self._area", "def getPlot(self):\n return self.axes", "def area(self):\n return self._ned_shape.area", "def plot_area(self, plot_area):\n\n self.container['plot_area'] = plot_area"...
[ "0.8015857", "0.6979126", "0.64518106", "0.6444317", "0.64029795", "0.6273332", "0.6240111", "0.6213018", "0.6213018", "0.6182273", "0.6161128", "0.61006683", "0.60948646", "0.60843015", "0.5932199", "0.59108514", "0.5904475", "0.59019613", "0.59019613", "0.58508205", "0.5831...
0.8455489
0
Gets the perspective of this Chart. Returns or sets the perspective for the 3D chart view. Must be between 0 and 100.This property is ignored if the RightAngleAxes property is True.
def perspective(self): return self.container['perspective']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def perspective_matrix(self) -> TransformationMatrixType:\n z_near, z_far = self._clipping[self.projection_mode.value]\n return perspective_matrix(\n math.radians(self.fov), self.aspect_ratio, z_near, z_far\n )", "def perspective(self, fovy, aspect, near, far):\r\n\r\n top ...
[ "0.6350137", "0.5872357", "0.5511344", "0.54428077", "0.53937984", "0.5318956", "0.5285869", "0.52554744", "0.52104604", "0.5187563", "0.5162952", "0.51587725", "0.5153781", "0.5143376", "0.5090611", "0.50835675", "0.5051435", "0.50038797", "0.49585995", "0.49575293", "0.4935...
0.71654475
0
Sets the perspective of this Chart. Returns or sets the perspective for the 3D chart view. Must be between 0 and 100.This property is ignored if the RightAngleAxes property is True.
def perspective(self, perspective): self.container['perspective'] = perspective
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __set_perspective(self):\n\n src = np.float32([[(.42 * self.img_shape[1],.65 * self.img_shape[0] ),\n (.58 * self.img_shape[1], .65 * self.img_shape[0]),\n (0 * self.img_shape[1],self.img_shape[0]),\n (1 * self.img_shape[1], s...
[ "0.5924312", "0.5884691", "0.5652035", "0.5643766", "0.5549496", "0.54681253", "0.5303009", "0.5227209", "0.515854", "0.51536775", "0.50646126", "0.5044341", "0.5042253", "0.5020909", "0.49300623", "0.49297324", "0.48651686", "0.48564747", "0.48205695", "0.47628224", "0.47525...
0.6260638
0
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, Chart): return False return self.__dict__ == other.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False", "def __eq__(self, other):\n if i...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def __ne__(self, other): return not self == other
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: object) -> bool:\n if self.__eq__(other):\n return False\n return True", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other) -> bool:\n return not self.__eq__(other)", "def __eq__(self, other):\n ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Init a Naive model.
def __init__(self): self.last_obs = -1.0 self.last_timestamp = -1.0 self._fitted = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def train_naive(): # add arguments as needed\n pass", "def new(self):\n self.define_layers()\n self.model = nn.Sequential(*self.layers)\n self.model.cuda()\n self.model = orthogonal_init(self.model)\n\n # Re-count N\n self.count_params()", "def initialize_model(self...
[ "0.6986796", "0.6851191", "0.6756529", "0.66962796", "0.6682772", "0.6642912", "0.66138107", "0.66138107", "0.6606495", "0.6580688", "0.65635437", "0.6524907", "0.65189093", "0.6467302", "0.64500874", "0.6446566", "0.6412415", "0.6407918", "0.6390761", "0.6373686", "0.6372590...
0.0
-1
Init a Naive model with drift.
def __init__(self): self.slope = -1.0 self.last_obs = -1.0 self.last_obs_ind = -1 self._fitted = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, model, t_start=0, t_stop=4.0, N=100):\n self.model = model\n self.f = model.f\n self.u0 = model.I\n self.t_start = t_start\n self.t_stop = t_stop\n self.N = N\n self.dt = (t_stop - t_start)/(N-1)\n self.u1 = self.forwardEuler(self.u0, t_sta...
[ "0.61745256", "0.6096885", "0.6064139", "0.5969227", "0.5846548", "0.58450216", "0.5807861", "0.5727921", "0.56701374", "0.565286", "0.5636642", "0.56235856", "0.56195855", "0.5584542", "0.55471706", "0.5544156", "0.5531782", "0.55291927", "0.55285555", "0.55194503", "0.55046...
0.0
-1
Fit a Naive model with drift. This model calculates the slope of the line crossing the first and last observation of ``y``, and stores it alongside the last observation value of ``y`` and its timestamp. This is equivalent of calculating the mean of the slopes between each pair of adjacent observation, since it is a tel...
def fit(self, X: np.ndarray, y: np.ndarray, **kwargs) -> "TSNaiveDrift": if X.size != y.size: raise ValueError("'X' and 'y' size must match.") self.last_obs = y[-1] self.last_obs_ind = X[-1] # Note: if y.size == 1, this model degenerates to a standard Naive # model ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fit(self, X: np.ndarray, y: np.ndarray, **kwargs) -> \"TSNaive\":\n if X.size != y.size:\n raise ValueError(\"'X' and 'y' size must match.\")\n\n self.last_obs = y[-1]\n self.last_timestamp = X[-1]\n\n self._fitted = True\n\n return self", "def train(self, X, y):...
[ "0.62950695", "0.5809191", "0.5779197", "0.57618105", "0.57178485", "0.5707087", "0.5692389", "0.5641299", "0.56168664", "0.5608983", "0.5580946", "0.5508215", "0.5495734", "0.546715", "0.54465604", "0.54269004", "0.54204285", "0.53915215", "0.5380772", "0.53671277", "0.53608...
0.7848128
0
Init a Seasonal Naive Model.
def __init__(self, ts_period: int, copy: bool = False): self.y = np.empty(0) self.ts_period = ts_period self.timestamp_interval = -1 self.last_timestamp = -1 self._fitted = False self.copy = copy if self.ts_period is None: raise ValueError("'ts_period...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def initialize(self):\r\n if self.method == \"naive\":\r\n self.teams = TeamsNaive(\r\n self.data_path, self.season_to_play, self.season_data\r\n )\r\n self.gsim = GameNaive(False)\r\n if not self.playoffs_only:\r\n self.season = Seas...
[ "0.7209073", "0.6241648", "0.61229134", "0.59934205", "0.5984912", "0.5957773", "0.5953856", "0.59283274", "0.5914423", "0.58804125", "0.58801436", "0.5854038", "0.58509326", "0.5839679", "0.5788193", "0.5758703", "0.5739067", "0.5726109", "0.5723188", "0.569596", "0.5694267"...
0.0
-1
Move cursor back and forth between the start and end of the current line.
def _(event): buffer = event.current_buffer if buffer.document.is_cursor_at_the_end_of_line: buffer.cursor_position += buffer.document.get_start_of_line_position(after_whitespace=False) else: buffer.cursor_position += buffer.document.get_end_of_line_position()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wrap_cursor_back(event):\n b = event.cli.current_buffer\n b.cursor_up(count=1)\n relative_end_index = b.document.get_end_of_line_position()\n b.cursor_right(count=relative_end_index)", "def move_to_line_end(self) -> None:\n self.index = self.buffer.get_line_end(self.index)"...
[ "0.75576687", "0.7314067", "0.7243092", "0.68100274", "0.6807047", "0.6792462", "0.670493", "0.6624174", "0.6553016", "0.6515351", "0.6462456", "0.6458255", "0.6449224", "0.64125454", "0.63979065", "0.6395692", "0.6386519", "0.6382255", "0.63785785", "0.6356724", "0.6352943",...
0.6585332
8
Intended for use with DataFrame.apply() Returns an array with 'valError_3sd' inverted if the 'study' label was 2 , because the framing of the question was inverted in study 2.
def normalize_frame(row): ssid,val = row.name,row['valError_3sd'] ssid = str(ssid) if ssid.startswith('2'): val = val * -1 return(val)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def exclude_3sd(row):\n ssid,val = row['ssid'],row['val_estdiff_valid']\n mean,bound = subj_means[ssid],subj_3sd[ssid]\n diff = abs(val - mean)\n if diff < bound:\n return(val)\n else: return(np.nan)", "def normalize(row):\n study = row['study']\n val = row[key]\n group_mean = df.g...
[ "0.5488308", "0.51905835", "0.5062309", "0.5010833", "0.49819988", "0.4904047", "0.4858483", "0.48168486", "0.4798393", "0.47799495", "0.47131252", "0.47100052", "0.4706242", "0.4700586", "0.46923953", "0.4691933", "0.46675542", "0.46650818", "0.4662807", "0.4652067", "0.4644...
0.56664014
0
Compute ``pressure'' at each of the particles using smoothing kernel P = (1/4)(d^2 rho /dx^2 (d rho / dx)^2/rho)
def pressure(x, rho, m, h): n = x.size drho = np.zeros((n,1)) ddrho = np.zeros((n,1)) P = np.zeros((n,1)) # add the pairwise contributions to 1st, 2nd derivatives of density for i in range(0, n): # calculate vector between two particles uij = x[i] - x # calculate contribution due to neighb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compute_pressure(particles):\n\n pressure_tail = 16 / 3 * np.pi * density ** 2 * (2 - rc ** (-9) / 3 - rc ** (-3))\n pressure = pressure_tail + density / beta\n for i in range(n_particles):\n dx = dx_particles(particles, i)\n for j in range(i + 1, n_particles):\n rsq = np.dot(...
[ "0.74369097", "0.6379782", "0.6246655", "0.6203973", "0.618484", "0.60146254", "0.6000133", "0.5981728", "0.5972372", "0.59033024", "0.5901739", "0.58982116", "0.5887358", "0.5879797", "0.58670133", "0.5828402", "0.57959056", "0.5784047", "0.577099", "0.5749191", "0.5730787",...
0.7512569
0
Return a list of (unique) tiles in a lattice, potentially taking a slice of the lattice.
def lattice_tiles( self, lattice: AbstractLattice | int | str | np.ndarray, *, x: int | slice | None = None, y: int | slice | None = None, copy: bool = False, ) -> list[Tile]: if isinstance(lattice, (int, str)): lattice = cast(AbstractLattice, sel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_tiles(self):\n\n tiles = []\n for x in range(self.position[0],\n self.position[0] + CAR_LENGTH if self.is_horizontal else self.position[0] + CAR_WIDTH):\n for y in range(self.position[1],\n self.position[1] + CAR_WIDTH if self.is_hori...
[ "0.67712504", "0.659871", "0.65938085", "0.64056027", "0.6379115", "0.6239829", "0.621804", "0.61997527", "0.6184632", "0.61501884", "0.61029726", "0.60900235", "0.60094386", "0.6002465", "0.59690684", "0.5956083", "0.5952676", "0.5950894", "0.59465504", "0.58811474", "0.5878...
0.7972598
0
Return a full (deep) copy of the TileSet
def copy(self): return copy.deepcopy(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def copy_tiles(self):\n \n return self.tiles", "def copy(self):\n newterrain=Terrain(size=self.size)\n for point in self.size.upto():\n newterrain[point]=self[point]\n return newterrain", "def copy(self):\n\t\tb = Board(self.size, self.end_count)\n\t\tfor x in rang...
[ "0.74897015", "0.7042807", "0.69149053", "0.6853728", "0.6703723", "0.6559088", "0.65429324", "0.65186465", "0.64866734", "0.6447029", "0.64404404", "0.6428903", "0.64019275", "0.63128304", "0.6306594", "0.6303691", "0.62872964", "0.62739354", "0.62668186", "0.62668186", "0.6...
0.647943
24
Closes the connection to cursor and database
def __close(self): self.__cursor.close() self.__connection.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def close(cursor, conn):\n cursor.close()\n conn.close()", "def close(self):\n if self.cursor:\n self.cursor.close()\n if self.conn:\n self.conn.close()", "def close(connection, cursor):\n cursor.close()\n connection.close()", "def _closeConnection(curs...
[ "0.8400801", "0.83296746", "0.83180076", "0.83075917", "0.8292008", "0.81433946", "0.8115726", "0.8096025", "0.8077665", "0.8029546", "0.8017405", "0.79174733", "0.7908411", "0.79016215", "0.77998996", "0.77965647", "0.77761817", "0.77751976", "0.77440375", "0.7719656", "0.77...
0.80012184
11
Check if a table exists inside the database.
def checkIfTableExists(self, table): self.__open() query = "SHOW TABLES LIKE '{}'".format(table) self.__cursor.execute(query) result = self.__cursor.fetchall() self.__close() if result: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def db_table_exists(db, table_name):\n query = \"\"\"\n SELECT name FROM sqlite_master\n WHERE type='table' AND name='%s'\"\"\" % table_name\n cursor = db.execute(query)\n results = cursor.fetchmany()\n return len(results) > 0", "def _table_exists(conn, table_name):\n # Query for the...
[ "0.8627055", "0.8592485", "0.8590705", "0.8576304", "0.85526603", "0.8550044", "0.85478973", "0.8547877", "0.8508885", "0.8495176", "0.84605396", "0.8391576", "0.83367175", "0.8328435", "0.8311693", "0.8286035", "0.82297593", "0.8224683", "0.8195924", "0.81701803", "0.8157337...
0.85160464
8
This function plots the model loss over the iterations.
def plot_data(x, y, epochs): fig = plt.figure() ax = fig.gca() ax.set_ylim(0, int(np.max(y)+0.5)) ax.set_xlim(0, np.max(x)) ax.yaxis.grid(True) ax.grid(which='minor', axis='x', alpha=0.2) ax.grid(which='major', axis='x', alpha=0.5) major_ticks = np.arange(0, np.max(x), 88) minor_ti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_loss(self):\n plt.plot(self.loss[10:], 'g+', label = \"loss\")\n plt.plot(self.loss[10:], 'r--', label = \"loss (smooth)\")\n plt.title(f\"Graph of loss after {len(self.loss)} steps of Gradient Descent.\")\n plt.xlabel('steps')\n plt.ylabel('loss')\n plt.legend()\...
[ "0.7938481", "0.78641605", "0.783287", "0.7732044", "0.7726504", "0.7650553", "0.76490366", "0.76248276", "0.75093865", "0.75091004", "0.7490589", "0.74416727", "0.743818", "0.74233085", "0.73232067", "0.7264459", "0.72508603", "0.72154796", "0.7212581", "0.7205516", "0.72050...
0.61356914
86
This function prints and plots the confusion matrix.
def plot_confusion_matrix(cm, classes, title='Confusion matrix', cmap=plt.cm.Blues): plt.figure() print(cm) plt.imshow(cm, interpolation='nearest', cmap=cmap) plt.title(title) plt.colorbar() tick_marks = np.arange(len(classes)) plt.xtick...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_confusion_matrix(self):\r\n interp = ClassificationInterpretation.from_learner(self.learn)\r\n interp.plot_confusion_matrix()", "def showConfusionMatrix(self): \r\n sn.heatmap(self.conf_matrix, annot=True)\r\n plt.plot( label=\"Accuracy\")\r\n plt.plot( label=\"Error\"...
[ "0.80894613", "0.80770946", "0.79976976", "0.7946727", "0.7921785", "0.78448296", "0.7833224", "0.7781221", "0.7775631", "0.77574563", "0.77061635", "0.77016985", "0.7692213", "0.76785815", "0.76588994", "0.7641414", "0.7622791", "0.7611233", "0.7610989", "0.7598244", "0.7587...
0.7566331
23
A new video has media id custom props set and sitedomain tag
def test_site_tags_and_props_created(self): management._perform_item_update(self.no_jwp_item) self.jwp_client.videos.create.assert_called_once() _, kwargs = self.jwp_client.videos.create.call_args self.assertIn('tags', kwargs) # A site tag should be created site_tags = [...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, url, params=None):\n super(DailymotionVideo, self).__init__(url, params)\n self.video_id = self.get_video_id()", "def allow_video(self, video_id):\n print(\"allow_video needs implementation\")", "def allow_video(self, video_id):\n print(\"allow_video needs impleme...
[ "0.6862209", "0.6419486", "0.6419486", "0.6419486", "0.6419486", "0.6269555", "0.6211501", "0.6177765", "0.61635697", "0.61147875", "0.6112283", "0.6091977", "0.60848075", "0.6072977", "0.6070589", "0.60393", "0.60159534", "0.59976774", "0.5994685", "0.5990307", "0.59684116",...
0.0
-1
Calculate the white color brightness. Returns a white RBG888 color value proportional to `new_bright`.
def image_brightness(new_bright=0): # Scale brightness value bright = int(map_range(new_bright, 0, 15, 0x00, 0xFF)) # Recombine and return a composite RGB888 value return (bright << 16) + (bright << 8) + bright
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def brightness(rgb):\n # return (min(rgb) + max(rgb)) / 2\n return rgb_to_hls(rgb)[1] * 255", "def brightness(colors):\n return np.sum(colors * const_bright, -1)", "def brightness(self) -> float:\n # http://alienryderflex.com/hsp.html\n r, g, b = self.r, self.g, self.b\n return sq...
[ "0.7238071", "0.7092947", "0.6803916", "0.6755518", "0.675032", "0.66251", "0.6586745", "0.6565785", "0.63778144", "0.63319916", "0.62536144", "0.623833", "0.61728764", "0.6159832", "0.6148134", "0.61377037", "0.6053937", "0.60300833", "0.6029606", "0.6006611", "0.5998175", ...
0.7865143
0
checks if two geoPoints are close to each other less than 0.0002 difference in latitude and longitude
def closeTo(pointOne, pointTwo): if abs(pointOne.lat-pointTwo.lat) < 0.0002: if abs(pointOne.lon-pointTwo.lon) < 0.0002: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_distance_between_points_near_0_longitude(self) -> None:\n distance = mod_geo.distance(latitude_1=0, longitude_1=0.1, elevation_1=0, latitude_2=0, longitude_2=-0.1, elevation_2=0, haversine=True)\n print(distance)\n self.assertTrue(distance < 230000)\n distance = mod_geo.distanc...
[ "0.68965024", "0.68775374", "0.6850814", "0.68162566", "0.6770471", "0.6755913", "0.67292225", "0.6659399", "0.6643475", "0.6582708", "0.6544976", "0.6542233", "0.65107584", "0.6491227", "0.6475733", "0.6455675", "0.6451569", "0.6419926", "0.64136344", "0.6383127", "0.6365336...
0.7546722
0
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def __init__(self, *args, **kwds): if args or kwds: super(Lane, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.lnid is None: self.lnid = 0 if self.did is None: self.did = 0 if self.blid is None: sel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args, **kwds):\n if args or kwds:\n super(KomodoSpeechRecCommand, self).__init__(*args, **kwds)\n #message fields cannot be None, assign default values for those that are\n if self.header is None:\n self.header = std_msgs.msg.Header()\n if self.cmd is None:\n ...
[ "0.77944714", "0.77215654", "0.77215654", "0.76878554", "0.762691", "0.7565032", "0.744052", "0.7418174", "0.73521847", "0.7309203", "0.72811013", "0.7238687", "0.7227824", "0.7225277", "0.7225277", "0.7219933", "0.72126967", "0.72126967", "0.72126967", "0.72126967", "0.72126...
0.0
-1
Perform basic string cleaning removes URLs, punctuation, digits, stopwords and return a string.
def clean_sentence(text): # clean sentence if a string is given if type(text) is str: text = text.lower() text = re.sub(url_regex, "", text) # remove URLS text = text.translate(str.maketrans('', '', punc_and_digits)) # remove punctua...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def clean_str(string):\n # seperate puctuations from words\n string = string.decode()\n string = re.sub(\"(www\\S*)\\s\", \" \", string)\n string = re.sub(r\"[^A-Za-z(),!?\\'\\`]\", \" \", string)\n string = re.sub(r\"\\'s\", \" \\'s\", string)\n string = re.sub(r\"\\'ve\", \" \\'ve\", string)\n ...
[ "0.72920084", "0.71803224", "0.7091754", "0.7067018", "0.7024143", "0.7018882", "0.7018882", "0.7018882", "0.7018882", "0.7018882", "0.7018882", "0.6963789", "0.6961485", "0.6892104", "0.6886375", "0.68685436", "0.6835158", "0.68211687", "0.6806096", "0.67903167", "0.6759485"...
0.6792095
19
Adds the current move to the board, raises an InvalidMove exception if the move is not valid. Move is provided as a number representing the column (0indexed).
def update(self, move): if not 0 <= move < 7: raise InvalidMove placed = False x = None y = None for row in reversed(xrange(self._rows)): if not self._board[row][move]: self._board[row][move] = self.current_player placed ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addMove(self, col, ox):\n if self.allowsMove(col) == True:\n R = -1\n for row in self.board:\n if row[col] == '':\n R += 1\n else:\n break\n self.board[R][col] = ox", "def next_move(self, board):\n\n ...
[ "0.7126505", "0.70664185", "0.70437914", "0.6878872", "0.68653184", "0.68591124", "0.6838076", "0.67795336", "0.67763007", "0.67054313", "0.66793174", "0.6647682", "0.6627679", "0.66067046", "0.65569186", "0.6549177", "0.65401334", "0.6530885", "0.6519299", "0.64894545", "0.6...
0.6585276
14
Updates the propositions in the current proposition layer, given the current action layer. don't forget to update the producers list!
def updatePropositionLayer(self): currentLayerActions = self.actionLayer.getActions() propsToAdd = dict() for action in currentLayerActions: for prop in action.getAdd(): if prop.getName() not in propsToAdd: propsToAdd[prop.getName()] = Proposition(prop.getName()) temp = props...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def updateActionLayer(self, previousPropositionLayer):\n allActions = PlanGraphLevel.actions\n for action in allActions:\n if previousPropositionLayer.allPrecondsInLayer(action):\n self.actionLayer.addAction(action)\n for p1 in action.getPre():\n for p2 in action.getPre():\n ...
[ "0.6212301", "0.5827918", "0.55494934", "0.5389405", "0.5265647", "0.52123123", "0.519316", "0.5185746", "0.51857156", "0.51090014", "0.5085629", "0.50659305", "0.50154364", "0.49740243", "0.49435315", "0.49342737", "0.49228463", "0.49226925", "0.4900547", "0.48907316", "0.48...
0.8544127
0
Fail if the two objects are unequal as determined by the '==' operator.
def assert_equal(self, first, second): if first != second: raise AssertionError('%s and %s not equal' % (str(first), str(second)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_not_equal_on_equal(self):\n a = objects.OpaqueObject(self.bytes_a, enums.OpaqueDataType.NONE)\n b = objects.OpaqueObject(self.bytes_a, enums.OpaqueDataType.NONE)\n self.assertFalse(a != b)\n self.assertFalse(b != a)", "def test_equality_check_against_other_object_doesnt_raise...
[ "0.7972038", "0.7953332", "0.791635", "0.7878723", "0.78270835", "0.78110594", "0.7785602", "0.7784792", "0.7608514", "0.7529266", "0.75235796", "0.7501297", "0.74929625", "0.7451132", "0.74390656", "0.74371505", "0.73967385", "0.73882294", "0.7386272", "0.7371011", "0.736063...
0.0
-1
Fail if the two objects are equal as determined by the '!=' operator.
def assert_not_equal(self, first, second): if not first != second: raise AssertionError('%s and %s is equal' % (str(first), str(second)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_not_equal_on_equal(self):\n a = objects.OpaqueObject(self.bytes_a, enums.OpaqueDataType.NONE)\n b = objects.OpaqueObject(self.bytes_a, enums.OpaqueDataType.NONE)\n self.assertFalse(a != b)\n self.assertFalse(b != a)", "def test_equal_on_not_equal_value(self):\n a = obj...
[ "0.8249434", "0.8094856", "0.80365336", "0.80047584", "0.79781115", "0.7968609", "0.7931336", "0.7858331", "0.78554344", "0.7851954", "0.7839215", "0.7839215", "0.7825297", "0.7823654", "0.7821077", "0.7821077", "0.7804327", "0.77988434", "0.77988434", "0.77988434", "0.779306...
0.0
-1
Test whether specifying `views_counter` in request data has no effect on newly created message.
def test_specified_views_counter_in_request_data_doesnt_work(self): authorize_user(self, self.user) self.data['views_counter'] = 100 r = self.client.post(self.url, self.data) self.assertEqual(r.status_code, status.HTTP_201_CREATED) self.assertEqual(ShortMessage.objects.all().co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_specified_views_counter_in_request_data_doesnt_work(self):\n authorize_user(self, self.user)\n\n self.data['views_counter'] = 42\n r = self.client.put(self.url, self.data)\n self.assertEqual(r.status_code, status.HTTP_200_OK)\n\n message = ShortMessage.objects.get(id=sel...
[ "0.74677074", "0.5890426", "0.56832916", "0.53067124", "0.53067124", "0.5299341", "0.5244574", "0.5200756", "0.5200756", "0.51537615", "0.51534575", "0.5145374", "0.5135964", "0.5131167", "0.51267344", "0.5108679", "0.51009494", "0.5085601", "0.5083386", "0.5082497", "0.50728...
0.70359325
1
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def plot_confusion_matrix(y_true, y_pred, classes, normalize=False, title=None, cmap=plt.cm.Blues): if not title: if normalize: title = 'Normalized confusion matrix' else: title = 'Confusion matrix,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_confusion_matrix(cm, classes=[0,1], normalize=False, title='Confusion matrix', print_matrix=False):\n\n if normalize:\n cm = cm.astype('float') / cm.sum(axis=1)[:, np.newaxis]\n print(\"Normalized confusion matrix\")\n else:\n print('Confusion matrix, without normalization')\n\n...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.0
-1
Test that models/base.py conforms to PEP8
def test_pep8(self): pep8style = pep8.StyleGuide(quiet=True) result = pep8style.check_files(['models/review.py']) self.assertEqual(result.total_errors, 0, "Fix PEP8 Style")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_pep8_base_model(self):\n syntax = pep8.StyleGuide(quit=True)\n check = syntax.check_files(['models/base_model.py'])\n self.assertEqual(\n check.total_errors, 0,\n \"Found code style errors (and warnings).\"\n )", "def test_base_pep8(self):\n\n pep...
[ "0.7453463", "0.72078586", "0.72025883", "0.71329147", "0.7119043", "0.7045536", "0.70115036", "0.6908024", "0.68620104", "0.67976946", "0.6787752", "0.659859", "0.659363", "0.65897286", "0.6516813", "0.64944935", "0.64626634", "0.6439026", "0.6439002", "0.64148736", "0.64142...
0.0
-1
Initialize a new heterodyne detector
def __init__(self, parent: IRadiant, aperture_efficiency: float, main_beam_efficiency: float, receiver_temp: u.Quantity, eta_fss: float, lambda_line: u.Quantity, kappa: float, common_conf: Entry, n_on: float = None, lambda_local_oscillator: u.Quantity = None): self.__aperture_e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self):\n\t\tself.hog = cv2.HOGDescriptor()\n\t\tself.hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector())", "def setup_class(cls):\n super().setup_class()\n cls.detector = cls.faceEngine.createFaceDetector(DetectorType.FACE_DET_V3)\n cls.headPoseEstimator = cls.faceE...
[ "0.7666332", "0.6720781", "0.6661823", "0.6466674", "0.628226", "0.6239407", "0.61837965", "0.6123459", "0.6084499", "0.6029067", "0.60137326", "0.5963999", "0.5955903", "0.5942501", "0.5919654", "0.5913192", "0.5909615", "0.5897089", "0.5880361", "0.5856052", "0.5847786", ...
0.0
-1
Opens link with a default browser
def open_link(self): try: webbrowser.open(self.url) except: self.ids.link.text=self.link_message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def open_browser(url):\n import webbrowser\n webbrowser.open_new(url)", "def open(url):\r\n webbrowser.open(url)", "def open_url(name):\n url = localReadConfig.get_webServer(name)\n browser = open_browser()\n browser.get(url)\n return browser", "def open_link(self) -> None:\n\n we...
[ "0.75763214", "0.7557892", "0.75217783", "0.7484332", "0.7465191", "0.7376895", "0.72685564", "0.7204314", "0.71937084", "0.717447", "0.71231353", "0.7065184", "0.70542157", "0.6985752", "0.686669", "0.68585277", "0.6831391", "0.6791183", "0.6777394", "0.6690523", "0.6685554"...
0.7285749
6
Sets the account of this UserAccount.
def account(self, account): self._account = account
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_account(self, account: str):\n ret = self._call_txtrader_api('set_account', {'account': account})\n if ret:\n self.account = account\n return ret", "def account(self, account: str):\n self._account = account", "def setAccount(self, account_id):\n self.data_...
[ "0.8246745", "0.78562874", "0.77215654", "0.7270701", "0.70730263", "0.6983603", "0.6983603", "0.6983603", "0.6983603", "0.6983603", "0.6983603", "0.69340014", "0.69204676", "0.6775463", "0.6743965", "0.6743965", "0.6734876", "0.6694728", "0.6594505", "0.65251815", "0.6525181...
0.78917587
4
Sets the owner of this UserAccount.
def owner(self, owner): self._owner = owner
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_owner(self, owner):\n self.__owner = owner", "def set_owner(self, owner):\n self.settings[\"owner\"] = owner", "def owner(self, owner: str):\n\n self._owner = owner", "def owner(self, owner):\n self._owner = owner", "def owner(self, owner):\n self._owner = owner",...
[ "0.78752697", "0.7601397", "0.7236231", "0.7004789", "0.7004789", "0.7004789", "0.7004789", "0.6881393", "0.67938316", "0.6740653", "0.67152494", "0.6556186", "0.64197516", "0.6331364", "0.63241863", "0.6304038", "0.62834555", "0.61718875", "0.60590553", "0.5998503", "0.59982...
0.7060455
6
Sets the pricing_stream of this UserAccount.
def pricing_stream(self, pricing_stream): self._pricing_stream = pricing_stream
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def stream(self, stream):\n\n self._stream = stream", "def phone_number_pricing(self, phone_number_pricing):\n\n self._phone_number_pricing = phone_number_pricing", "def price_user_scale_factor(self, new_price_scale_factor):\n self._price_user_scale_factor = new_price_scale_factor", "def...
[ "0.5617177", "0.5580449", "0.54622865", "0.5337011", "0.51830935", "0.5081882", "0.50610065", "0.50513", "0.50495976", "0.50038165", "0.49593112", "0.48928854", "0.48736453", "0.48566812", "0.4851221", "0.4851221", "0.483334", "0.483334", "0.483334", "0.483334", "0.48275256",...
0.830166
0
Sets the registration_time of this UserAccount.
def registration_time(self, registration_time): self._registration_time = registration_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def regime(self, regime):\n\n self._regime = regime", "def time_registrations_pending(self, time_registrations_pending):\n\n self._time_registrations_pending = time_registrations_pending", "def register_time(self):\n\n return self._register_time", "def set_time(self, time):\n self...
[ "0.60934883", "0.59322226", "0.59216666", "0.57901937", "0.57497275", "0.57497275", "0.57489735", "0.57310486", "0.5581096", "0.5561463", "0.5508342", "0.5491771", "0.54879934", "0.54753536", "0.54572225", "0.54572225", "0.54572225", "0.54572225", "0.54572225", "0.54572225", ...
0.8039564
0
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, UserAccount): return False return self.__dict__ == other.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False", "def __eq__(self, other):\n if i...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def __ne__(self, other): return not self == other
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: object) -> bool:\n if self.__eq__(other):\n return False\n return True", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other) -> bool:\n return not self.__eq__(other)", "def __eq__(self, other):\n ...
[ "0.8457179", "0.8393067", "0.81457263", "0.8140635", "0.8133462", "0.8094992", "0.8093376", "0.8093376", "0.8093376", "0.80863357", "0.80863357", "0.8077303", "0.8077303", "0.8066831" ]
0.0
-1
Get Active, Archived and Deleted Rooms
def get(self): email = get_jwt_identity() args = state_parser.parse_args() if self.validate_state(args['State']): response = taskroom_service.get_rooms(email, state=args['State']) return {'Message': "Rooms rendered successfully", 'records': marshal(response, room_response...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def all_rooms(self):\n pass", "def get_room_list():\n room_list = []\n # 0\n room = Room(\n \"Patio. You are in a patio, it is surrounded by four long walls.\\n\\\n The south wall has a metal door.\",\n north = None,\n east = None,\n south = 2,\n west = ...
[ "0.6656026", "0.66451913", "0.6524098", "0.6515682", "0.64789677", "0.6462179", "0.63320726", "0.62815815", "0.6231442", "0.60870445", "0.60590804", "0.60575235", "0.60316056", "0.59440136", "0.5932989", "0.5919288", "0.59126407", "0.5890113", "0.58415306", "0.58374053", "0.5...
0.6449946
6
Add an ID to the parameter. Used in the XML parser.
def add_id(self, param_id): self.param_id = param_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_id(self, value):\n pass", "def setId(self, *args):\n return _libsbml.Parameter_setId(self, *args)", "def id(self, value: str):\n self._id = value", "def id(self, value):\n self._id = value", "def id(self, id: \"str\"):\n self._attrs[\"id\"] = id", "def setID(se...
[ "0.7011758", "0.69049484", "0.68907505", "0.6872778", "0.68666255", "0.6732613", "0.6654759", "0.66065395", "0.65470105", "0.6542949", "0.65151495", "0.64772534", "0.6467692", "0.6467692", "0.6467692", "0.6467692", "0.6467692", "0.6467692", "0.6467692", "0.6467692", "0.646769...
0.80257756
0
Adds word to the trie API
def add_word(word : str = typer.Argument(..., help="Adds a word into the trie")): response_url = url + "/add-word/" + word response = requests.post(response_url) # typer.echo(response.status_code) typer.echo(response.json()["status"])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addWord(self, word): \n\n # make trie for new word\n self.root.makeTrie(word)", "def addWord(self, word):\n trie = self.trie\n for c in word:\n if c in trie.children:\n trie = trie.children[c]\n else:\n new_trie_node = TrieNode...
[ "0.88564175", "0.8585774", "0.8518963", "0.8500234", "0.8467591", "0.8439713", "0.8374968", "0.83596516", "0.83521754", "0.83342856", "0.83237267", "0.83019435", "0.8279684", "0.8157593", "0.81260335", "0.8111395", "0.8033443", "0.79659474", "0.7935538", "0.7934886", "0.79073...
0.8318894
11
The objectID member is intended to hold a reference to a matplotlib Axes line.
def setObjectID(self, id): self.objectID = id[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def refresh_mpl_line(self, line=None):\n if line:\n self.set_label(self.label,line=line)\n self.set_color(self.color,line=line)\n self.set_style(self.style,line=line)\n self.set_marker(self.marker,line=line)\n self.set_markersize(self.markersize,line=li...
[ "0.61172634", "0.60012084", "0.59574246", "0.590053", "0.5885334", "0.5839067", "0.5817491", "0.57262534", "0.57232964", "0.5716498", "0.57031965", "0.5678415", "0.56702083", "0.5669856", "0.56568015", "0.56343913", "0.5617246", "0.56105536", "0.55859274", "0.5578005", "0.554...
0.51402736
67
The objectID member holds a reference to a matplotlib Axes line.
def getObjectID(self): return self.objectID
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def line_plot(self, x, y, labels, ax=None):\n if ax is None:\n fig, ax = plt.subplots()\n else:\n fig = None\n ax.plot(x, y, '--o', label=labels[0])\n ax.set_xlabel(labels[1])\n ax.set_ylabel(labels[2])\n ax.set_title(labels[3])\n return fig, a...
[ "0.6298649", "0.6186815", "0.6051088", "0.60498846", "0.6028013", "0.5978459", "0.5973572", "0.59635", "0.5908879", "0.58352345", "0.583247", "0.5810498", "0.5784244", "0.5767813", "0.57562387", "0.5747402", "0.5737262", "0.5712935", "0.57114714", "0.569688", "0.56960636", ...
0.0
-1
Deletes a stored DataSet value from the graph's self.lines DataSet objects list and removes its line and legend from the plot. The user should take care to make DataSet names unique, as Graph will raise a value error if attempts are made to plot a duplicate.
def clear(self, value=None): if value is not None: for line in self.lines.values(): if line.name == value: self.ax.lines.remove(line.getObjectID()) self.lines.pop(line.name) break else: self.reset() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def erase_plot(self, line_position=0):\n self.axplot.lines.pop(line_position).remove\n self.fig.canvas.draw()\n return", "def onChartRemoveSeries(self):\n self.chart().removeAllSeries()\n self.series = {}\n self.yaxis = {}\n self.pen = {}\n self.ymin = {}\n...
[ "0.66351277", "0.6371006", "0.636957", "0.6354721", "0.6229092", "0.6049038", "0.5983907", "0.59239936", "0.588611", "0.5838648", "0.5778737", "0.5773105", "0.5653713", "0.5644687", "0.5636289", "0.5609624", "0.5535121", "0.5524911", "0.552384", "0.55181354", "0.55134946", ...
0.7284637
0
Sets the yaxis label.
def ylabel(self, ylabel: str): self.ax.set_ylabel(ylabel) self.canvas.draw()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setYLabel(self, label):\n self.__y_label__ = label", "def ylabel(self, ylabel):\n self._checkfigure()\n self.axes.set_ylabel(ylabel)", "def yaxis(self,label,units):\n if units != \"\": label = label + \" (\" + units + \")\"\n self.subplot.set_ylabel(label)\n pass",...
[ "0.87819266", "0.8729952", "0.8566484", "0.8290339", "0.7596447", "0.73720384", "0.7287233", "0.7199465", "0.71755195", "0.7148771", "0.7108934", "0.7030008", "0.69437724", "0.6860179", "0.6843944", "0.68026125", "0.6742102", "0.67285734", "0.67194414", "0.670722", "0.6655735...
0.8613367
2
From grouped prediction df create a df with sigma values
def create_sigma_df(df_grouped, class_=0): sigma_all_list = [] sigma_peak_list = [] snid_list = [] pred_class_list = [] for SNID, SNID_df in df_grouped: arr_proba = SNID_df[f"all_class{class_}"] perc_16 = np.percentile(arr_proba, 16) perc_84 = np.percentile(arr_proba, 84) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pred_agg1_train(df):\n new_feats = []\n pred_cols = [column for column in df.columns if \"pred\" in column]\n for c in pred_cols:\n tmp = (\n df.groupby([\"StudyInstanceUID\"])[c]\n .agg([\"min\", \"max\", \"mean\", \"std\"])\n .reset_index()\n )\n ...
[ "0.5929299", "0.5567277", "0.55313414", "0.5472892", "0.54662263", "0.5434398", "0.5434398", "0.54230976", "0.5333848", "0.5313226", "0.53037614", "0.5286666", "0.52825445", "0.5256516", "0.52423424", "0.5230521", "0.5220441", "0.52196497", "0.52161765", "0.5212521", "0.52102...
0.7253875
0
Plot confusion matrix Based on sklearn tutorial
def plot_confusion_matrix( settings, cm, classes, normalize=False, cmap=vu.CMAP, nameout=None ): if normalize: cm = cm.astype("float") / cm.sum(axis=1)[:, np.newaxis] plt.imshow(cm, interpolation="nearest", cmap=cmap) cbar = plt.colorbar() # cbar.set_clim(0, 1.0) tick_marks = np.arange(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_confusion_matrix(self):\r\n interp = ClassificationInterpretation.from_learner(self.learn)\r\n interp.plot_confusion_matrix()", "def confusion_matrix(y_true, y_pred):\n skplt.plot_confusion_matrix(y_true, y_pred, normalize=True)\n plt.show()", "def plot_confusion_matrix(nam...
[ "0.8652628", "0.81777143", "0.80173403", "0.784581", "0.7827307", "0.78151953", "0.78129476", "0.78104126", "0.7782032", "0.7770489", "0.7745367", "0.77211577", "0.7714087", "0.77135867", "0.7710713", "0.7709293", "0.7687494", "0.76825345", "0.7666476", "0.7662785", "0.764679...
0.0
-1
View function for home page of site.
def index(request): # Generate counts of some of the main objects num_para = Paragraph.objects.all().count() num_source = Source.objects.all().count() context = { 'num_para': num_para, 'num_source': num_source, 'paragraph_list': queryset[:10], } return render(request, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def home(request):\n\treturn render(request, \"compta/home.html\")", "def home_page(request):\r\n return render(request, 'ez_main/home_page.html')", "def home(request):\r\n return render(request, 'home.html')", "def homepage(request):\n\treturn render(request, 'core/homepage.html')", "def homepage(req...
[ "0.8493426", "0.84268916", "0.83415145", "0.83306193", "0.82976943", "0.8295291", "0.8276345", "0.82545686", "0.82155704", "0.8132563", "0.81246215", "0.81224865", "0.8121264", "0.81049734", "0.8098485", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0...
0.0
-1
Try to use horizontal lines for each cell
def algorithm(picture, args): painter = Painter(picture.empty_copy()) for row, column in painter.picture.positions_to_paint(picture): if painter.picture[row][column]: continue length = 0 for i in range(column + 1, picture.shape[1]): if picture[row][i]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _render_horizontal(self, gc, lx, ly, rx, ry, mx, my):\n\n with gc:\n gc.set_line_width(20)\n gc.set_stroke_color(self._get_border_color())\n tee_h(gc, lx, ly, mx, my, ry)\n\n gc.set_line_width(10)\n self.set_fill_color(gc)\n tee_h(gc, lx, ly, mx, my,...
[ "0.673935", "0.665423", "0.660569", "0.64899975", "0.6296126", "0.6255477", "0.62394047", "0.62325823", "0.61054385", "0.6071586", "0.6065438", "0.6048631", "0.6036933", "0.60131955", "0.5983394", "0.59808725", "0.59733856", "0.59036434", "0.589739", "0.58827794", "0.58405805...
0.0
-1
Updates the borough boundaries with fresh data. Returns DataFrame dataframe with updated borough boundaries
def update_borough_boundaries(): results = SOCRATA_CLIENT.get(BOROUGH_BOUNDARIES_ID) df = pd.DataFrame.from_records(results) df = df.fillna("null") return df
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_borough_boundaries():\n df = update_borough_boundaries()\n return {\"data\": df.to_dict(orient=\"records\")}", "def update_building_complaint_results():\n start_datetime, end_datetime = get_start_end_datetimes()\n\n cols_to_keep = [\"status\", \"date_entered\", \"community_board\", \"dobrunda...
[ "0.6696175", "0.56873673", "0.5390654", "0.52780145", "0.5237147", "0.51732105", "0.51707673", "0.5146873", "0.5059102", "0.50555474", "0.50370103", "0.50335425", "0.50295824", "0.50278145", "0.50271016", "0.50269765", "0.50243634", "0.50039434", "0.4995536", "0.49728087", "0...
0.7939964
0
Return linear operators for matrix A using ``QRFactorization`` approach.
def qr_factorization_projections(A, m, n, orth_tol, max_refin, tol): # QRFactorization Q, R, P = scipy.linalg.qr(A.T, pivoting=True, mode='economic') if np.linalg.norm(R[-1, :], np.inf) < tol: warn('Singular Jacobian matrix. Using SVD decomposition to ' + 'perform the factorizations.')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def equation(self):\n mat = np.zeros((self.nunknowns, self.model.neq))\n rhs = np.zeros(self.nunknowns) # Needs to be initialized to zero\n rhs[0:self.nlayers - 1] = 0.0\n rhs[self.nlayers - 1] = self.Qc\n ieq = 0\n for e in self.model.elementlist:\n if e.nunkn...
[ "0.63140255", "0.61556226", "0.60882294", "0.5880153", "0.584004", "0.5771403", "0.5757792", "0.57520336", "0.5652447", "0.55977297", "0.55937266", "0.5590953", "0.5553298", "0.5541851", "0.55299634", "0.5516062", "0.55025977", "0.55023235", "0.5494579", "0.54714626", "0.5444...
0.5185931
58
Return the name of the entity.
def name(self) -> str: return self._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def entity_name(self):\n return self.__entity_name", "def entity_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"entity_name\")", "def entity_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"entity_name\")", "def name(self):\n return \"{} {}\".format(self....
[ "0.8988398", "0.83023036", "0.83023036", "0.7979217", "0.7969564", "0.75555485", "0.7543831", "0.7536042", "0.7536042", "0.7536042", "0.75337434", "0.75239676", "0.7496596", "0.74891084", "0.74777347", "0.74761146", "0.7462404", "0.74502766", "0.74502766", "0.74502766", "0.74...
0.0
-1
Return device information about this entity.
def device_info(self) -> Dict[str, Any]: return { 'name': 'Electricity Meter', 'identifiers': { (DOMAIN, self.toon.agreement.id, 'electricity'), }, 'via_device': (DOMAIN, self.toon.agreement.id, 'meter_adapter'), }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def device_info(self):\n return {\n \"identifiers\": {(DOMAIN, self._uuid)},\n \"name\": self._device.device_data[self._uuid]['name'],\n \"manufacturer\": \"Nest Labs\",\n \"model\": self._device.device_data[self._uuid]['model'],\n }", "def device_informa...
[ "0.84024423", "0.8310492", "0.82632774", "0.8246566", "0.8233734", "0.82276016", "0.81636065", "0.8161638", "0.8142512", "0.81287444", "0.81188697", "0.809725", "0.8066906", "0.805994", "0.8030415", "0.79425216", "0.78648406", "0.7839619", "0.7780437", "0.772429", "0.7710039"...
0.7183069
39
Return device information about this entity.
def device_info(self) -> Dict[str, Any]: via_device = 'meter_adapter' if self.toon.gas.is_smart: via_device = 'electricity' return { 'name': 'Gas Meter', 'identifiers': { (DOMAIN, self.toon.agreement.id, 'gas'), }, 'via...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def device_info(self):\n return {\n \"identifiers\": {(DOMAIN, self._uuid)},\n \"name\": self._device.device_data[self._uuid]['name'],\n \"manufacturer\": \"Nest Labs\",\n \"model\": self._device.device_data[self._uuid]['model'],\n }", "def device_informa...
[ "0.84024423", "0.8310492", "0.82632774", "0.8246566", "0.8233734", "0.82276016", "0.81636065", "0.8161638", "0.8142512", "0.81287444", "0.81188697", "0.809725", "0.8066906", "0.805994", "0.8030415", "0.79425216", "0.78648406", "0.7839619", "0.7780437", "0.772429", "0.7710039"...
0.6822027
51
Return device information about this entity.
def device_info(self) -> Dict[str, Any]: return { 'name': 'Solar Panels', 'identifiers': { (DOMAIN, self.toon.agreement.id, 'solar'), }, 'via_device': (DOMAIN, self.toon.agreement.id, 'meter_adapter'), }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def device_info(self):\n return {\n \"identifiers\": {(DOMAIN, self._uuid)},\n \"name\": self._device.device_data[self._uuid]['name'],\n \"manufacturer\": \"Nest Labs\",\n \"model\": self._device.device_data[self._uuid]['model'],\n }", "def device_informa...
[ "0.84024423", "0.8310492", "0.82632774", "0.8246566", "0.8233734", "0.82276016", "0.81636065", "0.8161638", "0.8142512", "0.81287444", "0.81188697", "0.809725", "0.8066906", "0.805994", "0.8030415", "0.79425216", "0.78648406", "0.7839619", "0.7780437", "0.772429", "0.7710039"...
0.66400343
66
Return device information about this entity.
def device_info(self) -> Dict[str, Any]: return { 'name': 'Boiler Module', 'manufacturer': 'Eneco', 'identifiers': { (DOMAIN, self.toon.agreement.id, 'boiler_module'), }, 'via_device': (DOMAIN, self.toon.agreement.id), }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def device_info(self):\n return {\n \"identifiers\": {(DOMAIN, self._uuid)},\n \"name\": self._device.device_data[self._uuid]['name'],\n \"manufacturer\": \"Nest Labs\",\n \"model\": self._device.device_data[self._uuid]['model'],\n }", "def device_informa...
[ "0.84029275", "0.83101064", "0.82638246", "0.8246736", "0.82340974", "0.82282", "0.8164366", "0.81619817", "0.81432587", "0.8129084", "0.8119117", "0.80978185", "0.8066632", "0.8060112", "0.80315435", "0.79426545", "0.7865322", "0.78401786", "0.7781386", "0.77251685", "0.7710...
0.68029547
53
Return device information about this entity.
def device_info(self) -> Dict[str, Any]: return { 'name': 'Boiler', 'identifiers': { (DOMAIN, self.toon.agreement.id, 'boiler'), }, 'via_device': (DOMAIN, self.toon.agreement.id, 'boiler_module'), }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def device_info(self):\n return {\n \"identifiers\": {(DOMAIN, self._uuid)},\n \"name\": self._device.device_data[self._uuid]['name'],\n \"manufacturer\": \"Nest Labs\",\n \"model\": self._device.device_data[self._uuid]['model'],\n }", "def device_informa...
[ "0.84024423", "0.8310492", "0.82632774", "0.8246566", "0.8233734", "0.82276016", "0.81636065", "0.8161638", "0.8142512", "0.81287444", "0.81188697", "0.809725", "0.8066906", "0.805994", "0.8030415", "0.79425216", "0.78648406", "0.7839619", "0.7780437", "0.772429", "0.7710039"...
0.6332485
94
Hash password by bcrypt
def hash_password(password: str) -> str: return bcrypt.hashpw(password.encode(), bcrypt.gensalt()).decode('utf8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _hash_password(self, password):\n passwordhash = bcrypt.hashpw(password.encode('utf8'), bcrypt.gensalt())\n return passwordhash", "def set_password_hash(self, password):\n salt = bcrypt.gensalt()\n self.password_hash = bcrypt.hashpw(password.encode(), salt)", "def hash_pass(pass...
[ "0.8268661", "0.7588589", "0.75880057", "0.7462917", "0.74543166", "0.74489945", "0.74079734", "0.7374727", "0.73569494", "0.7343267", "0.7332781", "0.7317711", "0.73115474", "0.7265276", "0.72369903", "0.7216063", "0.71866125", "0.71866125", "0.71866125", "0.7175573", "0.716...
0.79247147
1
Convert text input to cv2 padding type.
def convert_padding_type(padding_type): padding_type = padding_type.casefold() if 'constant' in padding_type: padding_type = cv2.BORDER_CONSTANT elif 'reflect' in padding_type: padding_type = cv2.BORDER_REFLECT elif 'reflect_101' in padding_type: padding_type = cv2.BORDER_REFLECT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pad_arguments_np2cv(padding_mode):\r\n\r\n #Check that the padding_mode is actually supported by OpenCV\r\n supported = [\"constant\",\"edge\",\"reflect\",\"symmetric\",\"wrap\"]\r\n assert padding_mode in supported, \"The padding mode: '\"+padding_mode+\"' is\\\r\n not supported\"\r\n \r\n if p...
[ "0.65558743", "0.55725384", "0.5562775", "0.5385714", "0.53724253", "0.53560776", "0.53557736", "0.53338426", "0.53241104", "0.52906466", "0.5205709", "0.5183662", "0.51011056", "0.50824714", "0.5072624", "0.5057135", "0.50544673", "0.5041463", "0.5039924", "0.5039336", "0.50...
0.68194324
0
Build a dictionary of key phrases and words vs lists of codes from
def load_cls_phrases(self, fh): for line in fh: data = line.strip().split(',') # guards against unparseable lines if len(data) < 2: continue code = data[0] phrase_array = [data[1].lower().strip()] if len(data) > 2: syn_array = data[2].lower().strip().split('|') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def phrase_dict(phrase):\n switcher = {\n '처음으로': '닥앤미 병원을 찾아주셔서 감사합니다. 직접문의원할시 오른쪽 아래 1:1 버튼을 눌러주시면 직접 상담 가능합니다. 1:1 상담 가능 시간은 09시 – 18시 입니다.',\n '병원 정보': '어떤 정보를 보시고 싶으신가요?',\n '병원 위치': '“닥앤미 병원 주소는 서울시 용산구 이촌동 세움상가 2층입니다.” 더 자세한 지도확인을 원하실 경우 아래 버튼을 눌러주세요',\n '병원 운영시간': '닥앤미 병원을 찾아...
[ "0.6375093", "0.62682045", "0.6250747", "0.6186465", "0.6042899", "0.6037541", "0.60030776", "0.5992815", "0.5988023", "0.59842145", "0.5941964", "0.5934525", "0.5925648", "0.59190464", "0.58977425", "0.5886662", "0.5885836", "0.5885797", "0.5865589", "0.5837961", "0.5837493"...
0.0
-1
Does the word consist of only digits?
def isAllDigits(self, word): return ((re.match('^\d+$', word)) != None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isNumber(word):\n try:\n int(word)\n return True\n except ValueError:\n return False", "def has_num(text):\n return any(str.isdigit(c) for c in text)", "def is_a_word(self, word):\n word = word.lower()\n if word in self.data:\n return True\n els...
[ "0.76175547", "0.7450531", "0.73074466", "0.7143016", "0.7107635", "0.7073496", "0.7068539", "0.6972444", "0.6936955", "0.69307154", "0.68973094", "0.6896467", "0.6860162", "0.6850448", "0.684904", "0.6843223", "0.6811944", "0.67946136", "0.67942744", "0.6788229", "0.67543906...
0.83801264
0
Create Temp direcotry for test.
def temp_dir(): temp = UNIT_TEST_DATA / 'temp' try: temp.mkdir(parents=True, exist_ok=True) yield temp finally: rmtree(temp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def make_temp_file():\n global TEST_DATA_PATH\n TEST_DATA_PATH = tempfile.mkstemp()", "def tempdir():\n\n # Create a directory and return the path\n return tempfile.mkdtemp()", "def makeTempDir(self):\n try:\n os.mkdir(self.temp_dir)\n except FileExistsError:\n p...
[ "0.82404727", "0.7787907", "0.77076894", "0.76666385", "0.7607476", "0.7570035", "0.7552031", "0.7525697", "0.750737", "0.750594", "0.74805576", "0.74584657", "0.7446463", "0.7444258", "0.7437589", "0.74103785", "0.73999727", "0.73969376", "0.7376581", "0.73672974", "0.735852...
0.7327385
21
Add an existing vertex of the mesh to an existing face.
def mesh_add_vertex_to_face_edge(mesh, key, fkey, v): vertices = mesh.face_vertices(fkey) i = vertices.index(v) u = vertices[i - 1] vertices.insert(key, i - 1) mesh.halfedge[u][key] = fkey mesh.halfedge[key][v] = fkey if u not in mesh.halfedge[key]: mesh.halfedge[key][u] = None i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_vertex(self, vertex):\n if vertex.id not in self.vertices.keys():\n self.vertices[vertex.id] = vertex", "def add_vertex(self, vertex):\n raise NotImplementedError", "def add_vertex(self, vertex_id):\n pass # TODO", "def add_vertex(self, vertex):\n self.vertices...
[ "0.7536953", "0.72154135", "0.7194671", "0.71758544", "0.701824", "0.7003851", "0.69728833", "0.6890576", "0.6828992", "0.6815246", "0.6699687", "0.6694727", "0.66754115", "0.6671858", "0.6654274", "0.6633525", "0.663016", "0.6610411", "0.65899926", "0.65883744", "0.65849185"...
0.71321505
4
Return the maximum error found.
def max_error(self) -> float: return float(np.max(np.abs(self._flattened_errors())))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max_error(self):\n print('Maximum residual error: ' + str(max_error(self.model.dataset.get_y_test(), self.model.get_predicted())))", "def fail_max(self) -> int:\n return self._fail_max", "def max_error_leaf(self) -> int | str:\n if not self.separate_leaves:\n return (\n ...
[ "0.73806757", "0.7341264", "0.7235181", "0.71577036", "0.7108624", "0.68729395", "0.67035025", "0.66579926", "0.6644238", "0.66168684", "0.6549779", "0.6534231", "0.6479589", "0.64585024", "0.6439758", "0.64376014", "0.6420512", "0.6341537", "0.6341537", "0.6340713", "0.63407...
0.7666576
0