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
tensorflow models take inputs in the form of dictionary, so lets initialize the weights and biases as given below.
def Network_model(input_data): layer1_param={'weights':tf.Variable(tf.random_normal([784, no_neurons_layer1])), 'biases': tf.Variable(tf.random_normal([no_neurons_layer1]))} layer2_param={'weights':tf.Variable(tf.random_normal([no_neurons_layer1, no_neurons_layer2])), 'biases': tf.Variable(tf.ran...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def instantiate_weights(self):\n self.product_embeddings = tf.get_variable(\n name='product_embeddings',\n shape=[50000, 300],\n dtype=tf.float32\n )\n self.aisle_embeddings = tf.get_variable(\n name='aisle_embeddings',\n shape=[250, 50],\...
[ "0.71508247", "0.69941616", "0.69117284", "0.6856355", "0.6852571", "0.68191075", "0.6812003", "0.6794182", "0.66336554", "0.6599237", "0.65786254", "0.6572007", "0.6555084", "0.65550345", "0.65287083", "0.6478359", "0.64674765", "0.64668727", "0.6450922", "0.64502835", "0.64...
0.0
-1
Checks if this object is equal to the given object.
def __eq__(self, other: Any) -> bool: if not isinstance(other, Detection): return False return self.to_pb2().__eq__(other.to_pb2())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, obj):\r\n return assert_(self.obj == obj, '%r != %r' % (self.obj, obj))", "def equals(self, obj: object) -> bool:\n ...", "def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False", "def __eq__(self, o...
[ "0.84820056", "0.8479907", "0.7772451", "0.776262", "0.76864976", "0.76346", "0.7584103", "0.7563157", "0.7492194", "0.7382019", "0.7382019", "0.7377297", "0.73125404", "0.7282762", "0.72483206", "0.72483206", "0.7242191", "0.7229649", "0.721935", "0.72074294", "0.72034365", ...
0.0
-1
Creates a `DetectionResult` object from the given protobuf object.
def create_from_pb2(cls, pb2_obj: _DetectionListProto) -> 'DetectionResult': return DetectionResult(detections=[ Detection.create_from_pb2(detection) for detection in pb2_obj.detection ])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_from_pb2(cls, pb2_obj: _DetectionProto) -> 'Detection':\n categories = []\n keypoints = []\n\n for idx, score in enumerate(pb2_obj.score):\n categories.append(\n category_module.Category(\n score=score,\n index=pb2_obj.label_id[idx]\n if idx ...
[ "0.6956014", "0.63642377", "0.6125023", "0.59702444", "0.58484066", "0.58035487", "0.5756006", "0.5747268", "0.5728937", "0.5719317", "0.5707261", "0.5668253", "0.56501925", "0.5640081", "0.5609101", "0.56009984", "0.5578371", "0.55314255", "0.54847527", "0.54557663", "0.5424...
0.7150129
0
Checks if this object is equal to the given object.
def __eq__(self, other: Any) -> bool: if not isinstance(other, DetectionResult): return False return self.to_pb2().__eq__(other.to_pb2())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, obj):\r\n return assert_(self.obj == obj, '%r != %r' % (self.obj, obj))", "def equals(self, obj: object) -> bool:\n ...", "def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False", "def __eq__(self, o...
[ "0.84820056", "0.8479907", "0.7772451", "0.776262", "0.76864976", "0.76346", "0.7584103", "0.7563157", "0.7492194", "0.7382019", "0.7382019", "0.7377297", "0.73125404", "0.7282762", "0.72483206", "0.72483206", "0.7242191", "0.7229649", "0.721935", "0.72074294", "0.72034365", ...
0.0
-1
Sets a global callback for a key. That global callback will be processed before the backlight callback or any proxy callbacks.
def set_global_callback(self, key, callback): logger.info("Setting a global callback for key {}".format(key)) if key in self.global_keymap.keys(): #Key is already used in the global keymap raise CallbackException(4, "Global callback for {} can't be set because it's already in the...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_callback(self, key_name, callback):\n self.keymap[key_name] = callback", "def on_key_press(self, key, callback):\n self._key_press_mappings.setdefault(key, []).append(callback)", "def on_key_down(self, key, callback):\n self._key_down_mappings.setdefault(key, []).append(callback)",...
[ "0.777143", "0.6745067", "0.6675222", "0.66108286", "0.65832454", "0.65314454", "0.6518663", "0.6452133", "0.6393997", "0.630503", "0.630503", "0.62082213", "0.6182233", "0.6078736", "0.6005011", "0.59948313", "0.59812015", "0.59192264", "0.5898782", "0.5890711", "0.5886671",...
0.82165956
0
Build and returns the compiled model. This model using two convolution layers with same filters and kernel_size.
def build_2l_conv1d(input_shape, # type: tuple n_outputs, # type: int filters=64, # type: int kernel_size=3, # type: int dropout_rate=0.5, # type: float max_pool_size=2 # type: int ): # type...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_model():\n model_weights = np.load(WEIGHTS_PATH, encoding='latin1').item()\n model = Sequential()\n model.add(InputLayer(batch_input_shape=(1, None, 1)))\n\n filter_parameters = [\n {'name': 'conv1', 'num_filters': 16, 'padding': 32,\n 'kernel_size': 64, 'conv_strides': 2,\n ...
[ "0.7843513", "0.7671269", "0.74126005", "0.7366354", "0.7364689", "0.73559505", "0.73552245", "0.72524965", "0.7191866", "0.711912", "0.7064913", "0.70286036", "0.70041883", "0.6958656", "0.69508547", "0.6926073", "0.6881373", "0.6878544", "0.6875986", "0.6843905", "0.6832512...
0.0
-1
Shifts memory pointer to the left, and wraps if overflow
def shift_left(self): self.pointer = (self.pointer - 1) % len(self.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shift_right(self):\n self.pointer = (self.pointer + 1) % len(self.data)", "def left_shift_quirk(self):\n register = self.return_middle_registers(self.opcode)\n bits = self.registers[register[1]]\n self.registers[0xF] = bits & 0x80\n self.registers[register[0]] = self.regist...
[ "0.7302517", "0.67051417", "0.62993085", "0.6186789", "0.61543137", "0.61421025", "0.61421025", "0.6118518", "0.60601836", "0.6055462", "0.6044158", "0.59976745", "0.5996142", "0.59438795", "0.59336305", "0.59336305", "0.5932606", "0.59301436", "0.5904966", "0.5805709", "0.57...
0.8035613
0
Shifts memory pointer to the right, and wraps if overflow
def shift_right(self): self.pointer = (self.pointer + 1) % len(self.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shift_left(self):\n self.pointer = (self.pointer - 1) % len(self.data)", "def right_shift_quirk(self):\n register = self.return_middle_registers(self.opcode)\n bits = self.registers[register[1]]\n self.registers[0xF] = bits & 0b1\n self.registers[register[0]] = self.registe...
[ "0.6900167", "0.6354507", "0.62975734", "0.62975734", "0.62477076", "0.62477076", "0.6194957", "0.6092156", "0.6071652", "0.5979519", "0.59792703", "0.59734774", "0.5946819", "0.5946819", "0.5867097", "0.58472127", "0.58369106", "0.5805094", "0.5775423", "0.5687141", "0.56862...
0.79117274
0
Using the provided coordinates, construct a URL that can be used to request data from the PokeVision server.
def build_url(self): return self.data_url.format(latitude=self.latitude, longitude=self.longitude)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_url(vehicle, coordinates, format=\"json\", geometryformat=\"isoz\"):\n load = vehicle.load if vehicle.load > -1.0 else 0\n params = {\n \"format\": format,\n \"height\": vehicle.height,\n \"length\": vehicle.length,\n \"stops\": coordinates,\n ...
[ "0.7170332", "0.67756486", "0.59669214", "0.56886506", "0.5578064", "0.5483974", "0.54776394", "0.5387635", "0.53556955", "0.53294986", "0.5301188", "0.52824855", "0.52653795", "0.5242535", "0.5223329", "0.5205852", "0.52005583", "0.51907694", "0.5158472", "0.51552194", "0.51...
0.6356817
2
decrease the learning rate
def adjust_learning_rate(optimizer, epoch): lr = args.lr if epoch >= 75: lr = args.lr * 0.1 if epoch >= 90: lr = args.lr * 0.01 if epoch >= 100: lr = args.lr * 0.001 for param_group in optimizer.param_groups: param_group['lr'] = lr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dec_learning_rate(step, opt, dec_rate=0.05):\r\n prev_lrs = [ ]\r\n curr_lrs = [ ]\r\n for param_group in opt.param_groups:\r\n prev_lrs.append(param_group['lr'])\r\n param_group['lr'] *= (1 - dec_rate)\r\n curr_lrs.append(param_group['lr'])\r\n print('Step {}: learning rate de...
[ "0.73365825", "0.6999569", "0.69734424", "0.6962472", "0.6850783", "0.6850783", "0.6736016", "0.67287916", "0.6726578", "0.67016196", "0.6700515", "0.6699682", "0.66969526", "0.66909665", "0.66878617", "0.6660984", "0.6660523", "0.66366637", "0.661834", "0.66054904", "0.65952...
0.6465043
42
This returns passed/unknown based on whether the correct number of shards were run.
def _validate_shards(self, phase_steps): step_expanded_flags = [step.data.get('expanded', False) for step in phase_steps] assert all(step_expanded_flags) or not any(step_expanded_flags), \ "Mixed expanded and non-expanded steps in phase!" expanded = step_expanded_flags[0] if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def num_shards(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"num_shards\")", "def num_shards(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"num_shards\")", "def num_shards(self) -> pulumi.Output[Optional[int]]:\n return pulumi.get(self, \"num_shards\"...
[ "0.66806996", "0.66806996", "0.65968984", "0.6564108", "0.65100336", "0.64898604", "0.6456982", "0.6293137", "0.61180824", "0.6029549", "0.59713656", "0.58966476", "0.5810569", "0.5808117", "0.57611364", "0.56801116", "0.56801116", "0.56716657", "0.5592363", "0.55386966", "0....
0.6688927
0
Compute distance between two graphs. Dist(g1, g2) = sum of the number of different types at each position.
def graph_dist(i1: int, g1: nx.Graph, i2: int, g2: nx.Graph) -> t.Tuple[int, int, float]: space1, space2 = map(dict, map(mut_space, [g1, g2])) d = 0 for k in set(list(space1) + list(space2)): if k in space1 and k in space2: d += len(set(space1[k]).symmetric_difference(set(space2[k]))) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dist(gene1, gene2):\n return abs(len(gene1.goal) - len(gene2.goal))", "def distance(self, p1, p2):\n return math.sqrt((p1[0] - p2[0])**2 + (p1[1] - p2[1])**2)", "def _distance_between(self, n1, n2):\n return cartesian_distance(n1[0], n1[1], n2[0], n2[1])", "def dist(p1,p2):\n\n ...
[ "0.7052676", "0.6525444", "0.64828163", "0.6472447", "0.64504766", "0.64094216", "0.63695735", "0.6368995", "0.6366128", "0.63610345", "0.6358933", "0.6339656", "0.6332752", "0.6315913", "0.6301245", "0.6300807", "0.6286851", "0.6285222", "0.62828505", "0.62771046", "0.627473...
0.76226
0
Start the subscriber on the specified topic.
def start_output_listener(self, topic, topic_datatype): # Creates the results folder if not exists if not OutputFormatter.create_folder(self._result_path): return False try: # Subscribe to topic self.node.create_subscription( topic_datatype, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def subscribe( self, topic ):\n logging.info( \"Subscribing to topic %s\" %topic )\n try:\n self.client.subscribe( topic )\n except Exception as error:\n print( error )", "def subscribe(self, topic):\n self.topic = topic\n self.client.on_connect = self.on_...
[ "0.78482056", "0.77784014", "0.76314664", "0.74056953", "0.71226215", "0.6963337", "0.6862761", "0.6628269", "0.66143", "0.65456337", "0.6523416", "0.6403678", "0.63349146", "0.6331385", "0.63101554", "0.6289929", "0.62848616", "0.6278068", "0.6277234", "0.6175131", "0.612244...
0.5754273
44
Extracts the internal energy, in kcal/mol. Returns {
def get_internal_energy(filename): # --------------- helper functions --------------- # def parse_data(block): """ Parse the line(s) to get the data. """ rval = { 'Total' : None, 'Electronic' : None, 'Translational' : None, 'Rotatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_energy(self):\n return self.momentum*self.momentum/(2*self.mass)", "def E(self):\n return self.generic_getter(get_energy, \"E\", \"convert_energy\")", "def _UpdateEnergy(self):\n self.mol.GetEnergy('nokinetic')", "def get_energy(self):\r\n return self._energy", "def energy(self)...
[ "0.71186304", "0.70523226", "0.6860814", "0.6832749", "0.6744801", "0.6730437", "0.6717525", "0.6695658", "0.6670511", "0.662027", "0.6619445", "0.66005003", "0.6566411", "0.655792", "0.6519911", "0.6519155", "0.65160525", "0.6515425", "0.6505026", "0.6497781", "0.6495223", ...
0.71035576
1
sobel filter in the X direction
def sobelX(img): f = np.array([-1, 0, 1, -2, 0, 2, -1, 0, 1]).reshape([3, 3]) return cv2.filter2D(img, cv2.CV_64F, f)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _filter_sobel(image: np.array,\n axis: str,\n krnsize: int):\n assert(axis == 'x' or axis == 'y')\n if axis == 'x':\n return cv.Sobel(image.astype(np.float32), cv.CV_32F, 1, 0,\n ksize=krnsize)\n elif axis == 'y':\n return cv.Sobel...
[ "0.6596819", "0.6334096", "0.6277048", "0.62744933", "0.6252383", "0.60070086", "0.5933587", "0.58884615", "0.58774906", "0.587075", "0.5866317", "0.5796786", "0.5710503", "0.5701478", "0.5689006", "0.5672794", "0.56712633", "0.5664752", "0.566134", "0.5625519", "0.56192404",...
0.730834
0
Returns the squared norm of the residual ||Axb||^2. Uses the formula ||Axb||^2 = x^T At A x 2 x^T At b + b^T b
def residualNorm2(self): r2 = (np.dot(self.x,np.dot(self.AtA,self.x)-2.0*self.Atb) + self.btb)*self.scale if self.regularizationLambda > 0: r2 -= self.regularizationLambda*np.dot(self.x,self.x) return r2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def norm_sqr(x):\n return inner_prod(x, x)[0]", "def normsq(self):\n return abs(sum(self._ar * self._ar))", "def squared_norm(self) -> float:\n return self.__real**2 + self.__img[0]**2 + self.__img[1]**2 + self.__img[2]**2", "def residuals(self, b):\n x, y = self.xvals, self.yvals\n re...
[ "0.6747211", "0.6653646", "0.6535771", "0.64989585", "0.6443223", "0.641197", "0.6407342", "0.63821", "0.63790095", "0.6344118", "0.63047725", "0.63014567", "0.62121814", "0.61012596", "0.60930246", "0.6060861", "0.60221773", "0.5978604", "0.5920722", "0.59131813", "0.5840989...
0.70747006
0
Returns the square of the OLS estimate of the standard error.
def standardError2(self): if self.count<=self.n: return float('inf') return self.residualNorm2()/self.sumWeight*(self.count / (self.count-self.n))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def standardError(self):\n return math.sqrt(self.standardError2())", "def std(self):\n\t\treturn np.sqrt(0.6) #obtained by integrating 1.5x^4 from -1 to 1", "def solutionStandardErrors(self):\n s2 = self.standardError2()\n res = [0]*self.n\n for i in range(self.n):\n try:...
[ "0.748974", "0.7023953", "0.6855853", "0.6814914", "0.68137634", "0.6777365", "0.6769344", "0.6768962", "0.6734791", "0.6734791", "0.67283535", "0.6701287", "0.6686407", "0.66689914", "0.6660003", "0.66325134", "0.66321224", "0.65943444", "0.6587359", "0.65406233", "0.6480651...
0.6564879
19
Returns the OLS estimate of the standard error.
def standardError(self): return math.sqrt(self.standardError2())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def calcSE(self):\n # Make sure the Variance is already calculated\n if not hasattr(self,'ZmAreaVar'):\n self.calcZmAreaVar()\n # Standard Error = Square Root of Variance\n self.SE = self.ZmAreaVar ** 0.5\n # Should I be returning the value also?\n # Or just set...
[ "0.68005335", "0.68005335", "0.6762827", "0.6659934", "0.665591", "0.6653387", "0.6584757", "0.6554382", "0.64640987", "0.64598745", "0.64504284", "0.6437211", "0.642384", "0.6409049", "0.6407436", "0.63946843", "0.637754", "0.6361304", "0.635801", "0.6355104", "0.6342508", ...
0.71480674
0
Adds a new datapoint a^T x ~= b, weighted by the given weight, and updates the solution x accordingly. The update runs in O(n^2) time.
def add(self,a,b,weight=1.0): assert len(a)==self.n assert self.AtA.shape==(self.n,self.n) assert self.AtAinv.shape==(self.n,self.n) assert self.Atb.shape==(self.n,) assert weight >= 0 if not isinstance(a,np.ndarray): a = np.array(a) self.count += 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_weight(self,ctr,new_weight):\n self.sum1 -= self.data_set[ctr].weight\n self.data_set[ctr].weight = new_weight\n self.sum1 += new_weight", "def update(self, x_dict, y_dict, weight):\n assert len(x_dict) == len(y_dict), \"invalid # of qids\"\n \n qids = self.__...
[ "0.6303772", "0.6197923", "0.6062118", "0.6041988", "0.6002171", "0.59855324", "0.59626055", "0.59606785", "0.59438187", "0.594028", "0.5936937", "0.59216666", "0.59198815", "0.59040046", "0.59040046", "0.58752626", "0.58549726", "0.58157927", "0.5775986", "0.5770006", "0.573...
0.74161243
0
Sets the i,j'th entry of the B matrix to a fixed value
def fixB(self,i,j,value): if self.coeffPattern[1] == None: m,n=self.m,self.n self.coeffPattern = [[None]*n for i in range(m)] self.coeffPattern[1][i][j]=value self._updateEstimatorSize(i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setitem(self, i, j, value):\n # XXX: flint matrices do not support negative indices\n # XXX: They also raise ValueError instead of IndexError\n m, n = self.shape\n if i < 0:\n i += m\n if j < 0:\n j += n\n try:\n self.rep[i, j] = value\...
[ "0.6667879", "0.6463817", "0.6389195", "0.62181973", "0.616571", "0.6083359", "0.6077811", "0.6001693", "0.5883053", "0.5796441", "0.57790047", "0.5761715", "0.57188946", "0.566718", "0.56665206", "0.56648684", "0.5614467", "0.5604686", "0.5590174", "0.55861634", "0.5575922",...
0.74203056
0
Returns the estimate Ax+Bu+c
def getOutput(self,x,u): assert(len(x)==self.m) assert(len(u)==self.n) if isinstance(x,np.ndarray): x = x.tolist() if isinstance(u,np.ndarray): u = u.tolist() dx = [] if self.coeffPattern == [None,None,None]: xuc = np.array(x + u + [1.0]) for e in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fci(B,mu):\n return wci(B,mu)/(2.*np.pi)", "def DispCurve(c,x,B,a,N,K):\n return B+np.square(a*(x/(1+x+(K*((c-N)/55.5)))));", "def b_coefficients(x1,x2,x3,y1,y2,y3,CCoefficients,DCoefficients):\n\tBCoefficients = np.array([\t((y2-y1)/(x2-x1)-CCoefficients[0]*(x2-x1) - DCoefficients[0]*((x2-x1)**2)), ...
[ "0.57442755", "0.57161736", "0.5639689", "0.5637237", "0.56253064", "0.5624895", "0.56204385", "0.5607222", "0.5604931", "0.55797225", "0.5546395", "0.5546115", "0.554398", "0.55335516", "0.55108327", "0.54854906", "0.5469882", "0.5456108", "0.54213846", "0.54213846", "0.5406...
0.0
-1
Clone(itkHistogramToIntensityImageFilterHDIF2_Superclass self) > itkHistogramToIntensityImageFilterHDIF2_Superclass_Pointer
def Clone(self) -> "itkHistogramToIntensityImageFilterHDIF2_Superclass_Pointer": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_Superclass_Clone(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Clone(self) -> \"itkHistogramToIntensityImageFilterHFIF2_Superclass_Pointer\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_Clone(self)", "def Clone(self) -> \"itkHistogramToIntensityImageFilterHDIF3_Superclass_Pointer\":\n return _itkHis...
[ "0.922437", "0.9045922", "0.89540005", "0.89061034", "0.8751305", "0.8391407", "0.8256266", "0.78257567", "0.77352655", "0.7725201", "0.7718851", "0.7717711", "0.76644176", "0.7653116", "0.7632725", "0.76326245", "0.75746095", "0.7573912", "0.7562253", "0.7561854", "0.7552323...
0.9382345
0
SetInput(itkHistogramToIntensityImageFilterHDIF2_Superclass self, itkHistogramD histogram)
def SetInput(self, histogram: 'itkHistogramD') -> "void": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_Superclass_SetInput(self, histogram)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetInput(self, histogram: 'itkHistogramF') -> \"void\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_SetInput(self, histogram)", "def SetInput(self, histogram: 'itkHistogramD') -> \"void\":\n return _itkHistogramToIntensityImageFilterPyth...
[ "0.85714495", "0.8541872", "0.8227786", "0.79158217", "0.77756524", "0.7649027", "0.75364137", "0.72654516", "0.7201253", "0.7113323", "0.71103084", "0.7108865", "0.70696056", "0.706146", "0.70471334", "0.70051384", "0.69584644", "0.69536245", "0.6930265", "0.6926325", "0.689...
0.892472
0
GetInput(itkHistogramToIntensityImageFilterHDIF2_Superclass self) > itkHistogramD
def GetInput(self) -> "itkHistogramD const *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_Superclass_GetInput(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetInput(self) -> \"itkHistogramF const *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_GetInput(self)", "def GetInput(self) -> \"itkHistogramD const *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFi...
[ "0.846607", "0.84456176", "0.82270604", "0.8135902", "0.8126908", "0.80628765", "0.7985406", "0.787683", "0.7710636", "0.76984173", "0.76601124", "0.75144154", "0.73965067", "0.73842186", "0.73614967", "0.7360445", "0.7247139", "0.72168684", "0.7204532", "0.7182143", "0.71647...
0.8715621
0
cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHDIF2_Superclass
def cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHDIF2_Superclass *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_Superclass_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2_Superclass *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHDIF2 *\":\n return ...
[ "0.8802556", "0.8706675", "0.86901796", "0.86768097", "0.8669712", "0.8667709", "0.8621266", "0.86067545", "0.8517571", "0.83498937", "0.8344339", "0.8339343", "0.8278812", "0.8219287", "0.8161514", "0.79823786", "0.79450047", "0.788159", "0.7808357", "0.77884054", "0.7752477...
0.8718414
1
New() > itkHistogramToIntensityImageFilterHDIF2_Superclass Create a new object of the class itkHistogramToIntensityImageFilterHDIF2_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ob...
def New(*args, **kargs): obj = itkHistogramToIntensityImageFilterHDIF2_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHDIF3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHFIF2_Superclass.__New_orig__()\n ...
[ "0.7883709", "0.7875144", "0.7811617", "0.76016587", "0.74495584", "0.7409853", "0.7092753", "0.6939588", "0.6878271", "0.68573594", "0.68571264", "0.68268955", "0.6795763", "0.67949384", "0.6765882", "0.673009", "0.6727195", "0.6712882", "0.6708396", "0.6703501", "0.6687316"...
0.82300293
0
itkHistogramToIntensityImageFilterHDIF2_Superclass_cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHDIF2_Superclass
def itkHistogramToIntensityImageFilterHDIF2_Superclass_cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHDIF2_Superclass *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_Superclass_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkHistogramToIntensityImageFilterHFIF2_Superclass_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2_Superclass *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkHistogramTo...
[ "0.9302605", "0.92289746", "0.9152287", "0.8983623", "0.89419806", "0.8931085", "0.8924042", "0.86505336", "0.8572457", "0.8479718", "0.83883804", "0.8115532", "0.8018749", "0.799478", "0.79875195", "0.78298914", "0.7783595", "0.7746395", "0.7742836", "0.76626843", "0.7651188...
0.939155
0
Clone(itkHistogramToIntensityImageFilterHDIF3_Superclass self) > itkHistogramToIntensityImageFilterHDIF3_Superclass_Pointer
def Clone(self) -> "itkHistogramToIntensityImageFilterHDIF3_Superclass_Pointer": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF3_Superclass_Clone(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Clone(self) -> \"itkHistogramToIntensityImageFilterHFIF3_Superclass_Pointer\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Superclass_Clone(self)", "def Clone(self) -> \"itkHistogramToIntensityImageFilterHDIF2_Superclass_Pointer\":\n return _itkHis...
[ "0.92179084", "0.9127063", "0.9009176", "0.8796925", "0.8669124", "0.8598552", "0.84632736", "0.7761678", "0.7660952", "0.76525754", "0.75917417", "0.7590316", "0.75807035", "0.7562208", "0.7559418", "0.752002", "0.74919444", "0.74900514", "0.7478422", "0.7440283", "0.7436827...
0.9328722
0
SetInput(itkHistogramToIntensityImageFilterHDIF3_Superclass self, itkHistogramD histogram)
def SetInput(self, histogram: 'itkHistogramD') -> "void": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF3_Superclass_SetInput(self, histogram)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetInput(self, histogram: 'itkHistogramD') -> \"void\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_Superclass_SetInput(self, histogram)", "def SetInput(self, histogram: 'itkHistogramF') -> \"void\":\n return _itkHistogramToIntensityImageFilterPyth...
[ "0.85856575", "0.85505867", "0.8322293", "0.7869605", "0.77807385", "0.7715344", "0.7632911", "0.7323427", "0.71943533", "0.7157125", "0.7139844", "0.71141326", "0.7089222", "0.7076418", "0.70758224", "0.70522875", "0.7033987", "0.69836944", "0.69814265", "0.6974149", "0.6922...
0.88432175
0
GetInput(itkHistogramToIntensityImageFilterHDIF3_Superclass self) > itkHistogramD
def GetInput(self) -> "itkHistogramD const *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF3_Superclass_GetInput(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetInput(self) -> \"itkHistogramD const *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_Superclass_GetInput(self)", "def GetInput(self) -> \"itkHistogramF const *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFi...
[ "0.86753446", "0.8493199", "0.8445596", "0.82215416", "0.82125163", "0.81676584", "0.8083721", "0.79355544", "0.7837085", "0.7782392", "0.776713", "0.7408737", "0.7355166", "0.73299104", "0.73268986", "0.7316055", "0.72737545", "0.7242042", "0.7198194", "0.7192907", "0.718763...
0.8716909
0
cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHDIF3_Superclass
def cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHDIF3_Superclass *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF3_Superclass_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF3_Superclass *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Superclass_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2_Superclass *\":\n ...
[ "0.8786195", "0.87091994", "0.864227", "0.8639897", "0.86261064", "0.86208606", "0.8610217", "0.85694945", "0.8563848", "0.8533094", "0.8518905", "0.85102224", "0.8483108", "0.84362954", "0.84180063", "0.8028261", "0.8007224", "0.7900481", "0.7854014", "0.78512704", "0.782479...
0.87033826
2
New() > itkHistogramToIntensityImageFilterHDIF3_Superclass Create a new object of the class itkHistogramToIntensityImageFilterHDIF3_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ob...
def New(*args, **kargs): obj = itkHistogramToIntensityImageFilterHDIF3_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHFIF3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHDIF3.__New_orig__()\n import...
[ "0.7873484", "0.7722035", "0.7674491", "0.7430958", "0.7411993", "0.7162209", "0.6920003", "0.68945295", "0.68654686", "0.68515897", "0.68480855", "0.6846972", "0.6844973", "0.6823688", "0.68217844", "0.6814534", "0.6740642", "0.67398053", "0.6739595", "0.6730977", "0.6729745...
0.8151985
0
itkHistogramToIntensityImageFilterHDIF3_Superclass_cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHDIF3_Superclass
def itkHistogramToIntensityImageFilterHDIF3_Superclass_cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHDIF3_Superclass *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF3_Superclass_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkHistogramToIntensityImageFilterHFIF3_Superclass_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF3_Superclass *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Superclass_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkHistogramTo...
[ "0.93387103", "0.925412", "0.9198918", "0.9142792", "0.9098503", "0.90958744", "0.90338135", "0.84490967", "0.843485", "0.8403202", "0.83209586", "0.83185774", "0.825541", "0.8163376", "0.8148845", "0.7794022", "0.77611303", "0.775527", "0.7747615", "0.77387017", "0.77321565"...
0.93662214
0
Clone(itkHistogramToIntensityImageFilterHFIF2_Superclass self) > itkHistogramToIntensityImageFilterHFIF2_Superclass_Pointer
def Clone(self) -> "itkHistogramToIntensityImageFilterHFIF2_Superclass_Pointer": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_Clone(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Clone(self) -> \"itkHistogramToIntensityImageFilterHDIF2_Superclass_Pointer\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_Superclass_Clone(self)", "def Clone(self) -> \"itkHistogramToIntensityImageFilterHFIF3_Superclass_Pointer\":\n return _itkHis...
[ "0.91437125", "0.9074012", "0.9019433", "0.88712096", "0.8751536", "0.8547503", "0.82779676", "0.78406805", "0.7773739", "0.76916385", "0.76840407", "0.7673898", "0.76732594", "0.76239276", "0.7598019", "0.7542215", "0.7536457", "0.7523258", "0.7514834", "0.75106543", "0.7496...
0.93896925
0
SetInput(itkHistogramToIntensityImageFilterHFIF2_Superclass self, itkHistogramF histogram)
def SetInput(self, histogram: 'itkHistogramF') -> "void": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_SetInput(self, histogram)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetInput(self, histogram: 'itkHistogramF') -> \"void\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Superclass_SetInput(self, histogram)", "def SetInput(self, histogram: 'itkHistogramD') -> \"void\":\n return _itkHistogramToIntensityImageFilterPyth...
[ "0.87196314", "0.84011406", "0.8155463", "0.8124422", "0.79099405", "0.75163317", "0.7417035", "0.7403655", "0.7307589", "0.7262706", "0.72064996", "0.7196994", "0.71848214", "0.7180325", "0.7152581", "0.7137926", "0.7124974", "0.70947796", "0.7051794", "0.70130527", "0.69700...
0.90130126
0
GetInput(itkHistogramToIntensityImageFilterHFIF2_Superclass self) > itkHistogramF
def GetInput(self) -> "itkHistogramF const *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_GetInput(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetInput(self) -> \"itkHistogramF const *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Superclass_GetInput(self)", "def GetInput(self) -> \"itkHistogramF const *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHF...
[ "0.854934", "0.83757126", "0.8206821", "0.81401664", "0.8086976", "0.8074032", "0.7870534", "0.7809767", "0.7701044", "0.7621548", "0.755961", "0.7557715", "0.7531832", "0.739957", "0.73232967", "0.73132837", "0.730985", "0.7298696", "0.72840375", "0.723881", "0.71757996", ...
0.878787
0
cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHFIF2_Superclass
def cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHFIF2_Superclass *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2 *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_cast(obj)", "def itkHistogramToIntensityImageFilterHFIF2_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2 *\"...
[ "0.8836063", "0.88286626", "0.8671581", "0.859663", "0.8550436", "0.85148597", "0.84689915", "0.8461177", "0.84291613", "0.83297455", "0.830506", "0.8274389", "0.82297206", "0.7990159", "0.79835844", "0.79314363", "0.7889459", "0.78697425", "0.7738546", "0.7727508", "0.770353...
0.8799149
2
New() > itkHistogramToIntensityImageFilterHFIF2_Superclass Create a new object of the class itkHistogramToIntensityImageFilterHFIF2_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ob...
def New(*args, **kargs): obj = itkHistogramToIntensityImageFilterHFIF2_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHDIF2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHFIF3_Superclass.__New_orig__()\n ...
[ "0.8009865", "0.7996712", "0.7860233", "0.77454877", "0.7564244", "0.75363857", "0.723677", "0.7023597", "0.7014756", "0.6982775", "0.69414204", "0.68942297", "0.6875397", "0.6869242", "0.6856265", "0.68246907", "0.6815956", "0.6795345", "0.6792411", "0.6791898", "0.67728126"...
0.8258732
0
itkHistogramToIntensityImageFilterHFIF2_Superclass_cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHFIF2_Superclass
def itkHistogramToIntensityImageFilterHFIF2_Superclass_cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHFIF2_Superclass *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2_Superclass *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_cast(obj)", "def itkHistogramToIntensityImageFilterHDIF2_Superclass_cast(obj: 'itkLightObject') -> \"itkHistogr...
[ "0.9269923", "0.9065891", "0.9046144", "0.9028999", "0.9022626", "0.88282317", "0.880251", "0.8698508", "0.8676367", "0.8478536", "0.84560055", "0.83248794", "0.8304135", "0.80749154", "0.7904207", "0.778451", "0.771874", "0.77131826", "0.766165", "0.766135", "0.76359737", ...
0.94048405
0
Clone(itkHistogramToIntensityImageFilterHFIF3_Superclass self) > itkHistogramToIntensityImageFilterHFIF3_Superclass_Pointer
def Clone(self) -> "itkHistogramToIntensityImageFilterHFIF3_Superclass_Pointer": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Superclass_Clone(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Clone(self) -> \"itkHistogramToIntensityImageFilterHFIF2_Superclass_Pointer\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_Clone(self)", "def Clone(self) -> \"itkHistogramToIntensityImageFilterHDIF3_Superclass_Pointer\":\n return _itkHis...
[ "0.9224012", "0.9140276", "0.9001117", "0.8862864", "0.8785143", "0.863536", "0.8527767", "0.7782771", "0.76469505", "0.7630945", "0.7624179", "0.76212937", "0.75921685", "0.7587516", "0.7577795", "0.75677156", "0.7561847", "0.74700356", "0.7465357", "0.74438006", "0.743719",...
0.9324502
0
SetInput(itkHistogramToIntensityImageFilterHFIF3_Superclass self, itkHistogramF histogram)
def SetInput(self, histogram: 'itkHistogramF') -> "void": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Superclass_SetInput(self, histogram)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetInput(self, histogram: 'itkHistogramF') -> \"void\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_SetInput(self, histogram)", "def SetInput(self, histogram: 'itkHistogramD') -> \"void\":\n return _itkHistogramToIntensityImageFilterPyth...
[ "0.88293236", "0.839976", "0.81970197", "0.8079215", "0.8012783", "0.75251436", "0.74062556", "0.7318942", "0.7305607", "0.72773814", "0.72718275", "0.7225308", "0.72049105", "0.7194187", "0.7192568", "0.7185939", "0.7128419", "0.71244377", "0.704517", "0.7018519", "0.7001864...
0.89476705
0
GetInput(itkHistogramToIntensityImageFilterHFIF3_Superclass self) > itkHistogramF
def GetInput(self) -> "itkHistogramF const *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Superclass_GetInput(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetInput(self) -> \"itkHistogramF const *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_GetInput(self)", "def GetInput(self) -> \"itkHistogramF const *\":\n return _itkHistogramThresholdCalculatorPython.itkHistogramThresholdCalculatorHF...
[ "0.8806584", "0.84490395", "0.83416253", "0.82654715", "0.8166956", "0.81175685", "0.80893993", "0.78823555", "0.7684232", "0.76209205", "0.7569527", "0.75447506", "0.7482111", "0.7472744", "0.7470777", "0.746328", "0.7439646", "0.74193215", "0.73447216", "0.73013204", "0.729...
0.8788506
1
cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHFIF3_Superclass
def cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHFIF3_Superclass *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Superclass_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2_Superclass *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Superclass_cast(obj)", "def itkHistogramToIntensityImageFilterHFIF3_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensi...
[ "0.8714453", "0.87069696", "0.87055707", "0.8679281", "0.8610211", "0.8573793", "0.8530472", "0.8496192", "0.845902", "0.8427056", "0.84168947", "0.83003175", "0.82371086", "0.82305706", "0.81626153", "0.80121064", "0.7926143", "0.7894555", "0.77675426", "0.77605563", "0.7689...
0.8748626
0
New() > itkHistogramToIntensityImageFilterHFIF3_Superclass Create a new object of the class itkHistogramToIntensityImageFilterHFIF3_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ob...
def New(*args, **kargs): obj = itkHistogramToIntensityImageFilterHFIF3_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHDIF3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHFIF2_Superclass.__New_orig__()\n ...
[ "0.7986002", "0.78347534", "0.77578115", "0.7557411", "0.75129277", "0.7352258", "0.70260686", "0.69943815", "0.69773", "0.69519234", "0.6945606", "0.69048303", "0.68758243", "0.68478346", "0.6843484", "0.6841892", "0.6826047", "0.68024683", "0.67924136", "0.67785925", "0.675...
0.8188191
0
itkHistogramToIntensityImageFilterHFIF3_Superclass_cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHFIF3_Superclass
def itkHistogramToIntensityImageFilterHFIF3_Superclass_cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHFIF3_Superclass *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Superclass_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF3_Superclass *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Superclass_cast(obj)", "def itkHistogramToIntensityImageFilterHFIF2_Superclass_cast(obj: 'itkLightObject') -> \"itkHistogr...
[ "0.92505485", "0.9192771", "0.91289425", "0.9104412", "0.9084542", "0.89306754", "0.8887199", "0.86373615", "0.85355854", "0.84353393", "0.84265244", "0.83524996", "0.8297941", "0.8245968", "0.81165415", "0.777257", "0.76999444", "0.76789504", "0.7678563", "0.767653", "0.7649...
0.93791234
0
Clone(itkHistogramToIntensityImageFilterHDIF2 self) > itkHistogramToIntensityImageFilterHDIF2_Pointer
def Clone(self) -> "itkHistogramToIntensityImageFilterHDIF2_Pointer": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_Clone(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Clone(self) -> \"itkHistogramToIntensityImageFilterHFIF2_Pointer\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Clone(self)", "def Clone(self) -> \"itkHistogramToIntensityImageFilterHDIF2_Superclass_Pointer\":\n return _itkHistogramToIntensityImage...
[ "0.9184061", "0.89092606", "0.88230014", "0.87041104", "0.8545245", "0.84801024", "0.83786386", "0.79271007", "0.7831058", "0.7803941", "0.7802808", "0.77740455", "0.7733224", "0.77233493", "0.7681553", "0.76633966", "0.7648677", "0.762695", "0.7619017", "0.7608857", "0.75323...
0.9420284
0
cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHDIF2
def cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHDIF2 *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkHistogramToIntensityImageFilterHFIF2_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2 *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_cast(obj)", "def itkHistogramToIntensityImageFilterHDIF2_cast(obj: 'itkLightObject') -> \"itkHist...
[ "0.8505759", "0.84608537", "0.8452214", "0.8115801", "0.81031096", "0.8055451", "0.79562557", "0.76592284", "0.764551", "0.75986683", "0.7522126", "0.7461213", "0.7435744", "0.7429952", "0.741878", "0.73851174", "0.73368186", "0.73172265", "0.729589", "0.72939575", "0.7285731...
0.8408295
3
New() > itkHistogramToIntensityImageFilterHDIF2 Create a new object of the class itkHistogramToIntensityImageFilterHDIF2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non na...
def New(*args, **kargs): obj = itkHistogramToIntensityImageFilterHDIF2.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHDIF2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHFIF2.__New_orig__()\n import...
[ "0.8255346", "0.79614615", "0.7902996", "0.7820934", "0.7810323", "0.75219804", "0.74565846", "0.7306973", "0.72069013", "0.71595293", "0.70915926", "0.70672804", "0.69706285", "0.69379467", "0.6924669", "0.69183517", "0.6909598", "0.6817335", "0.68114823", "0.67936176", "0.6...
0.8393583
0
itkHistogramToIntensityImageFilterHDIF2_cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHDIF2
def itkHistogramToIntensityImageFilterHDIF2_cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHDIF2 *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkHistogramToIntensityImageFilterHFIF2_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2 *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHDIF2 *\":\n ...
[ "0.87435085", "0.8555422", "0.850694", "0.81092983", "0.80938", "0.804669", "0.80095387", "0.76512355", "0.76056546", "0.7586625", "0.75675786", "0.75593317", "0.7537546", "0.7523658", "0.75125647", "0.7466598", "0.7461345", "0.73711026", "0.73686785", "0.73456335", "0.733707...
0.8827376
0
Clone(itkHistogramToIntensityImageFilterHDIF3 self) > itkHistogramToIntensityImageFilterHDIF3_Pointer
def Clone(self) -> "itkHistogramToIntensityImageFilterHDIF3_Pointer": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF3_Clone(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Clone(self) -> \"itkHistogramToIntensityImageFilterHFIF3_Pointer\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Clone(self)", "def Clone(self) -> \"itkHistogramToIntensityImageFilterHDIF3_Superclass_Pointer\":\n return _itkHistogramToIntensityImage...
[ "0.92123014", "0.89129746", "0.88646466", "0.8836337", "0.86989605", "0.84868526", "0.84356564", "0.7894419", "0.7732601", "0.7699432", "0.76663136", "0.76275635", "0.7622104", "0.761385", "0.76011723", "0.7585687", "0.7560823", "0.75381035", "0.75354743", "0.753427", "0.7503...
0.93893343
0
cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHDIF3
def cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHDIF3 *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF3_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkHistogramToIntensityImageFilterHFIF3_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF3 *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF3 *\":\n ...
[ "0.8448434", "0.8417502", "0.835008", "0.8307857", "0.83048546", "0.82902014", "0.82181597", "0.7711627", "0.764558", "0.7624", "0.76208776", "0.7602797", "0.7495353", "0.74888414", "0.7483147", "0.7397775", "0.73820835", "0.7352364", "0.7346563", "0.7328432", "0.730281", "...
0.8352713
2
New() > itkHistogramToIntensityImageFilterHDIF3 Create a new object of the class itkHistogramToIntensityImageFilterHDIF3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non na...
def New(*args, **kargs): obj = itkHistogramToIntensityImageFilterHDIF3.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHDIF3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHFIF3.__New_orig__()\n import...
[ "0.8181773", "0.7918242", "0.78963786", "0.7477513", "0.74771935", "0.7313416", "0.7301932", "0.7286213", "0.7276321", "0.7235005", "0.7207234", "0.7187921", "0.7158158", "0.7110759", "0.7091042", "0.7054034", "0.7053997", "0.70134115", "0.69773215", "0.6969209", "0.6942267",...
0.8282355
0
itkHistogramToIntensityImageFilterHDIF3_cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHDIF3
def itkHistogramToIntensityImageFilterHDIF3_cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHDIF3 *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF3_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkHistogramToIntensityImageFilterHFIF3_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF3 *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHDIF3 *\":\n ...
[ "0.87264454", "0.8544047", "0.85072184", "0.83306116", "0.83102137", "0.82565045", "0.82354856", "0.76665914", "0.7647912", "0.7623268", "0.75479573", "0.75374025", "0.75227046", "0.7508991", "0.7500165", "0.7486512", "0.7461673", "0.74420404", "0.74322104", "0.7430111", "0.7...
0.8747565
0
Clone(itkHistogramToIntensityImageFilterHFIF2 self) > itkHistogramToIntensityImageFilterHFIF2_Pointer
def Clone(self) -> "itkHistogramToIntensityImageFilterHFIF2_Pointer": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_Clone(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Clone(self) -> \"itkHistogramToIntensityImageFilterHDIF2_Pointer\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF2_Clone(self)", "def Clone(self) -> \"itkHistogramToIntensityImageFilterHFIF2_Superclass_Pointer\":\n return _itkHistogramToIntensityImage...
[ "0.9100983", "0.90084434", "0.8789084", "0.8626629", "0.85545427", "0.8462634", "0.8260777", "0.7910171", "0.786654", "0.78537685", "0.78032404", "0.77412796", "0.7718201", "0.76856035", "0.7648582", "0.7641152", "0.7576159", "0.75606775", "0.7559163", "0.75447327", "0.750319...
0.943361
0
cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHFIF2
def cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHFIF2 *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkHistogramToIntensityImageFilterHFIF2_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2 *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF3 *\":\n ...
[ "0.86343163", "0.82373023", "0.82312894", "0.8218915", "0.8181563", "0.7898248", "0.7722897", "0.77228296", "0.7565715", "0.75137776", "0.7501451", "0.7483475", "0.73786396", "0.7361109", "0.73297185", "0.7290449", "0.726056", "0.7249052", "0.7242084", "0.7144122", "0.7142181...
0.8582942
1
New() > itkHistogramToIntensityImageFilterHFIF2 Create a new object of the class itkHistogramToIntensityImageFilterHFIF2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non na...
def New(*args, **kargs): obj = itkHistogramToIntensityImageFilterHFIF2.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHFIF2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHDIF2.__New_orig__()\n import...
[ "0.83862305", "0.8108536", "0.8025372", "0.7996226", "0.7971941", "0.7651648", "0.75953496", "0.7404176", "0.7344013", "0.72930735", "0.7291637", "0.7228789", "0.72236395", "0.71837354", "0.70720166", "0.7065768", "0.70629764", "0.7050644", "0.6998276", "0.696929", "0.6937909...
0.8467414
0
itkHistogramToIntensityImageFilterHFIF2_cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHFIF2
def itkHistogramToIntensityImageFilterHFIF2_cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHFIF2 *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2 *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF2_cast(obj)", "def itkHistogramToIntensityImageFilterHDIF2_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHDIF2 *\"...
[ "0.87048954", "0.84731853", "0.8337443", "0.83272415", "0.821886", "0.7884519", "0.7836601", "0.77959657", "0.770813", "0.76306844", "0.7606926", "0.75502455", "0.75120366", "0.7499843", "0.74768424", "0.7454666", "0.7346448", "0.73074156", "0.72853357", "0.72637314", "0.7251...
0.89423305
0
Clone(itkHistogramToIntensityImageFilterHFIF3 self) > itkHistogramToIntensityImageFilterHFIF3_Pointer
def Clone(self) -> "itkHistogramToIntensityImageFilterHFIF3_Pointer": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_Clone(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Clone(self) -> \"itkHistogramToIntensityImageFilterHDIF3_Pointer\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHDIF3_Clone(self)", "def Clone(self) -> \"itkHistogramToIntensityImageFilterHFIF2_Pointer\":\n return _itkHistogramToIntensityImageFilterPytho...
[ "0.9114599", "0.89860016", "0.89775956", "0.86980623", "0.8670217", "0.8657743", "0.831353", "0.7816606", "0.76333934", "0.76226735", "0.75987744", "0.758446", "0.757711", "0.7564436", "0.754257", "0.75412047", "0.7516051", "0.7512623", "0.75065637", "0.75024736", "0.7444684"...
0.93840635
0
cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHFIF3
def cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHFIF3 *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkHistogramToIntensityImageFilterHFIF3_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF3 *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2 *\":\n ...
[ "0.85150164", "0.8460501", "0.8430863", "0.81747925", "0.8131866", "0.80651915", "0.800354", "0.7657726", "0.7655878", "0.76462466", "0.7566893", "0.74972075", "0.7361557", "0.73552704", "0.7350394", "0.7328647", "0.7304524", "0.72833055", "0.72786474", "0.72536397", "0.72502...
0.8477563
1
New() > itkHistogramToIntensityImageFilterHFIF3 Create a new object of the class itkHistogramToIntensityImageFilterHFIF3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non na...
def New(*args, **kargs): obj = itkHistogramToIntensityImageFilterHFIF3.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHFIF3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkHistogramToIntensityImageFilterHDIF3.__New_orig__()\n import...
[ "0.8294741", "0.805012", "0.8016811", "0.777093", "0.77300614", "0.7466122", "0.7418091", "0.7362299", "0.73581916", "0.7353877", "0.73246807", "0.72849464", "0.7271073", "0.7268804", "0.716889", "0.71451503", "0.714288", "0.7136556", "0.7100515", "0.70639247", "0.6979806", ...
0.83446544
0
itkHistogramToIntensityImageFilterHFIF3_cast(itkLightObject obj) > itkHistogramToIntensityImageFilterHFIF3
def itkHistogramToIntensityImageFilterHFIF3_cast(obj: 'itkLightObject') -> "itkHistogramToIntensityImageFilterHFIF3 *": return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_cast(obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF3 *\":\n return _itkHistogramToIntensityImageFilterPython.itkHistogramToIntensityImageFilterHFIF3_cast(obj)", "def itkHistogramToIntensityImageFilterHFIF2_cast(obj: 'itkLightObject') -> \"itkHistogramToIntensityImageFilterHFIF2 *\"...
[ "0.8583191", "0.85095525", "0.8413526", "0.83748084", "0.8283864", "0.806262", "0.8050438", "0.7673749", "0.76707214", "0.76674557", "0.75590205", "0.7531524", "0.743777", "0.74358416", "0.7409007", "0.7364636", "0.73527926", "0.733868", "0.732689", "0.72502005", "0.72340995"...
0.8800939
0
Attempt to get the views from a read node's metadata. Returns an empty list if no views were found or if the node is disabled.
def getViews(read): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def checkReadNodeViews(read):\n ...", "def get_views(self):\n query = mssqlqueries.get_views()\n logger.info(u'Views query: %s', query)\n for tabular_result in self.execute_query(query):\n for row in tabular_result[0]:\n yield (row[0], row[1])", "def getViews(s...
[ "0.7092899", "0.63050103", "0.6247541", "0.61599606", "0.60940975", "0.60877264", "0.60137796", "0.5968727", "0.59610015", "0.5864826", "0.5852184", "0.5835194", "0.57167536", "0.5685347", "0.56252414", "0.5621661", "0.5587391", "0.54850674", "0.54759926", "0.5453423", "0.535...
0.7342987
0
Reshapes an input variable without copy.
def reshape(x, shape): return Reshape(shape)(x)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reshape(x, shape):\n if x.shape == shape:\n return chainer.as_variable(x)\n y, = Reshape(shape).apply((x,))\n return y", "def reshape_var(var):\n dims = np.shape(var)\n nx = dims[0]\n ny = dims[1]\n nz = dims[2]\n\n var_2d = var.reshape(nx * ny, nz)\n return var_2d", "def ...
[ "0.78366554", "0.73209643", "0.709344", "0.7088738", "0.6896953", "0.67383665", "0.67162436", "0.6679906", "0.63716567", "0.63189733", "0.63096625", "0.63083035", "0.6296938", "0.62918407", "0.62788635", "0.62673515", "0.6232674", "0.61841697", "0.61799854", "0.614986", "0.61...
0.7709701
1
Create ngrams from sequence, e.g. ([1,2,3], 2) > [(1,2), (2,3)] Note that fewer sequence items than n results in an empty list being returned
def ngrams(sequence, n): # credit: http://stackoverflow.com/questions/2380394/simple-implementation-of-n-gram-tf-idf-and-cosine-similarity-in-python sequence = list(sequence) count = max(0, len(sequence) - n + 1) return [tuple(sequence[i:i+n]) for i in range(count)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_ngrams(sequence, n):\n length = len(sequence)\n #if only require 1-gram, then we need to add one START and one END to the sequence. \n if n==1 or n==2:\n sequence=[\"START\"]*n+sequence+[\"STOP\"]\n end = n+1 #end i means that when n==1, we need to read one more data, that is to the...
[ "0.8436832", "0.8296704", "0.82487375", "0.82446176", "0.79762423", "0.797303", "0.796149", "0.7947738", "0.7877346", "0.78521395", "0.78425014", "0.7817209", "0.7782612", "0.7661758", "0.76549834", "0.7623327", "0.7608347", "0.75973535", "0.75447464", "0.7532759", "0.7527483...
0.8099195
4
Test tath ensures that User entity could not be registred by bad request (invalid data)
def test_user_register_bad_request(self): response = self.client.post( CONSTS.USER_REGISTER_URL, data=self.invalid_user_data, format='json' ) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_bad_register(self):\n body, code = self.post(f\"/users\", bob, bob_creds)\n self.assertEqual(400, code)\n self.assertEqual({\"error\": \"Invalid request.\"}, body)", "def test_nonfield_validation_exceptions(self):\n expected = {\n \"errors\": [\n {\n...
[ "0.7491504", "0.73479205", "0.7301095", "0.7255182", "0.71819717", "0.7181554", "0.7159819", "0.71537626", "0.7135064", "0.7119446", "0.71167564", "0.7111415", "0.7111415", "0.7111415", "0.7111415", "0.7111415", "0.7110629", "0.7103566", "0.71003556", "0.7099588", "0.7081275"...
0.7439829
1
Test that ensures that User cannot login by bad request (invalid data)
def test_user_login_bad_request(self): response = self.client.post( CONSTS.USER_LOGIN_URL, data={ 'login': 'bad_login', 'password': 'StrongPassword123' }, format='json' ) self.assertEqual(response.status_code, status...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_non_registered_user_trying_to_login(self): \n # try logging in the user without registering the user \n res = self.client().post(AuthTestCase.login, data=self.user)\n # bad request \n self.assertEqual(res.status_code, 401)", "def test_invalid_login(self):\n self.r...
[ "0.82072616", "0.8139741", "0.80842024", "0.8042357", "0.79978496", "0.7930298", "0.79284537", "0.78991514", "0.78942084", "0.78828824", "0.78709924", "0.7844844", "0.7832578", "0.78224814", "0.77827966", "0.7778373", "0.7774142", "0.7756687", "0.7752546", "0.77441216", "0.77...
0.8066021
3
Test that ensures that User can retrieve own profile
def test_user_can_get_profile(self): response = self.client.get(CONSTS.USER_PROFILE_URL) serialized_user = UserBaseSerializer(self.superuser) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data, serialized_user.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_user_profiles(self):\n\n result = self.client.get(\"/profile/1\")\n self.assertIn(b'In house:',result.data)", "def test_view_a_user_profile(self):\n self.authorize_user(self.user_login_details)\n url = self.profiles_url + \\\n '{}'.format(self.user['user']['usernam...
[ "0.81016874", "0.7959554", "0.79444486", "0.7835931", "0.7786851", "0.776445", "0.77608496", "0.77333486", "0.7732777", "0.77311116", "0.7711868", "0.76994044", "0.7683066", "0.7620446", "0.76076543", "0.7603659", "0.75835335", "0.7556743", "0.75279504", "0.75171125", "0.7502...
0.7946966
2
Test taht ensures that Admin User Can retrieve all User entities as list
def test_admin_user_list_all_users(self): response = self.client.get(CONSTS.USER_ADMIN_LIST) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data, self.users.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_user(self):\n pass", "def test_get_all_user(self):\n response = self.client().get(AuthTestCase.admin)\n # assert the response code\n self.assertEqual(response.status_code, 200)", "def test_admin_get_all(self):\n response = self.app.get('/api/v3/users', headers=s...
[ "0.7837024", "0.7767257", "0.76850396", "0.761575", "0.7426045", "0.7366845", "0.73194444", "0.72961915", "0.7269834", "0.71973735", "0.7193696", "0.7150516", "0.7150516", "0.7108401", "0.7061053", "0.70366013", "0.7027449", "0.6998076", "0.6983491", "0.6972276", "0.6945069",...
0.77298206
2
Return a choice of the EMPTYCELL positions in threeInRow. (There is guaranteed to be one.)
def findEmptyCell(board: str, threeInRow: Tuple[int, int, int]) -> int: emptyCells = [ index for index in threeInRow if isAvailable(board, index)] return choice(emptyCells)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _find_empty_cell(self):\n\n for r, row in enumerate(self._board):\n for c, cell in enumerate(row):\n if cell is None:\n return r, c", "def get_empty_cells(grid):\n empty = []\n for j,row in enumerate(grid):\n for i,val in enumerate(row):\n ...
[ "0.72727686", "0.6839321", "0.68294424", "0.6811193", "0.6704302", "0.66418064", "0.66411024", "0.6630348", "0.66119945", "0.6558398", "0.64373374", "0.64259416", "0.6250926", "0.6242145", "0.62376344", "0.61824113", "0.61498785", "0.61472404", "0.6145132", "0.6128779", "0.60...
0.7991686
0
Gets a Matplotlib colormap and returns colour values.
def get_colormap(values, cmap='jet', colorbar=True, log=False): by_value = not isinstance(values, int) if not by_value: colorbar = False if by_value: cmap = plt.get_cmap(cmap) if log: colors = [cmap(x) for x in tools.maths.normalise(np.log10(values))] else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_colormap(self):\n return file_io.load_viscm_colormap(self.path)", "def get_colormap(self):\n return file_io.load_viscm_colormap(self.path)", "def get_mpl_colormap(self):\n return mpl.colors.ListedColormap(self.get_colors().astype(float) / 255.0)", "def get_colormap(self):\n ...
[ "0.78032744", "0.78032744", "0.7764265", "0.77636635", "0.77636635", "0.7576966", "0.7373085", "0.71636933", "0.7128788", "0.7060999", "0.7023266", "0.70118564", "0.69256985", "0.69256985", "0.6925066", "0.6903315", "0.6903315", "0.6903315", "0.68146145", "0.6675445", "0.6634...
0.6766899
19
Splits string into text and numerical contents. Attempts to correct units, e.g. 1mm > 0.001.
def split_string_at_numbers(string): split_list = re.compile(r'(\d+)').split(string) filtered_list = [] skip_next_loops = 0 for i in range(len(split_list)): if skip_next_loops > 0: skip_next_loops -= 1 continue part = split_list[i] if part.isdigit() or (pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def split_str(str):\n \n logger = logging.getLogger(__name__)\n \n logger.debug('{0}'.format(str))\n \n match = re.match(r\"([0-9]+.?\\d{0,32}?)(d|m|s)\", str)\n \n if match:\n items = match.groups()\n \n return items[0], items[1]", "def split_numeric(self, text, pars...
[ "0.6925009", "0.65334755", "0.6520658", "0.635075", "0.63488066", "0.6160343", "0.6068339", "0.60279137", "0.601422", "0.59562844", "0.5934333", "0.58912987", "0.5810802", "0.5781524", "0.57814986", "0.5722488", "0.56926334", "0.5669956", "0.56337434", "0.561773", "0.56051207...
0.68486416
1
initializes the name of the layer
def __init__(self, name): self.nodes = [] self.name = str(name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, **kwargs):\n\n # Simply hold on to the parameters for now\n self.name = kwargs.get(\"name\", None)\n\n # Placeholder for the resulting layer\n self.layer = None", "def layer_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"layer_name\")", "def __init__(...
[ "0.7638265", "0.6922889", "0.6903561", "0.68244743", "0.6732366", "0.6729887", "0.6706345", "0.66132414", "0.64212376", "0.6392913", "0.63845104", "0.6380822", "0.6365893", "0.6354016", "0.6351499", "0.6345915", "0.6345915", "0.6328372", "0.62979233", "0.62787753", "0.6220199...
0.6037687
48
Plot all filters of the first convolutional layer
def plot_filters(nnet, xp_path, title_suffix, file_prefix="", pretrain=False): assert hasattr(nnet, "conv1_layer") W = nnet.conv1_layer.W.get_value() title = "First layer filters " + title_suffix plot_mosaic(W, title=title, canvas="black", export_pdf=(xp_path + "/" + file_prefix + "filters")) if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_filters(net, layer, x, y):\n filters = net.layers[layer].w.eval()\n fig = plt.figure()\n for j in range(len(filters)):\n ax = fig.add_subplot(y, x, j)\n ax.matshow(filters[j][0], cmap = matplotlib.cm.binary)\n plt.xticks(np.array([]))\n plt.yticks(np.array([]))\n pl...
[ "0.7608246", "0.7212624", "0.713067", "0.7062097", "0.69267344", "0.6819708", "0.6145271", "0.6055823", "0.6031311", "0.6008441", "0.5975967", "0.59719664", "0.59341586", "0.5925674", "0.59162515", "0.59057593", "0.58573073", "0.5853721", "0.58509856", "0.5844984", "0.5841399...
0.6941137
4
Returns a string representation of the linked list.
def __repr__(self): nodes = [] current = self.head while current: nodes.append(repr(current)) current = current.next return '[' + ','.join(nodes) + ']'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __str__(self):\n temp = self.__head\n ss = []\n while temp is not None:\n ss.append(str(temp.data))\n temp = temp.next_node\n return ('\\n'.join(ss))", "def __str__(self):\n s = \"\"\n current = self.__head\n while current:\n s...
[ "0.8256819", "0.82213485", "0.811361", "0.811361", "0.8097053", "0.80869806", "0.80854017", "0.806656", "0.8016557", "0.792679", "0.792679", "0.7883213", "0.78830606", "0.7877349", "0.78521615", "0.7833529", "0.78077465", "0.77939177", "0.77717453", "0.7687394", "0.76823455",...
0.7688044
19
Prepends a new node to the beginning of the linked list.
def prepend(self, data): new_node = Node(data) new_node.next = self.head self.head = new_node
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prepend(self, data):\n new_node = Node(data)\n if self.head is None:\n self.head = new_node\n return\n new_node.next = self.head\n self.head = new_node", "def prepend(self, node):\n if not isinstance(node, Node):\n # If the node parameter is...
[ "0.7995619", "0.79641825", "0.7893326", "0.78671765", "0.78609854", "0.7816655", "0.76597434", "0.7535981", "0.69747233", "0.6947263", "0.6944525", "0.6929641", "0.69093335", "0.687938", "0.6799967", "0.67754614", "0.67740154", "0.67209345", "0.6679371", "0.66465557", "0.6632...
0.8024135
0
Insert a new node in the linked list at the given index.
def insert(self, data, index): if index == 0: self.prepend(data) return current_index = 0 current = self.head previous = None while current or previous: if current_index == index: new_node = Node(data) new_node.next = current previous.next = new_node ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def insert(self, index, value):\n # check the validity of index\n if index < 0 or index > self.n: # larger than no. of items\n print(\"Index Error; please input valid index\")\n return\n # if index==0, same as push_front\n if index==0:\n self.push_front...
[ "0.8343074", "0.80567", "0.8050931", "0.79749215", "0.78702235", "0.7838973", "0.7833016", "0.7831366", "0.77813876", "0.7771117", "0.76506627", "0.7565856", "0.75362885", "0.7480456", "0.7461067", "0.72521293", "0.72250545", "0.72007406", "0.7176089", "0.7161245", "0.7156055...
0.81863546
1
The display name for this template. Defaults to an empty string.
def display_name(self) -> str: return pulumi.get(self, "display_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def display_name(self) -> Optional[str]:\n return pulumi.get(self, \"display_name\")", "def display_name(self) -> Optional[str]:\n return pulumi.get(self, \"display_name\")", "def display_name(self) -> Optional[str]:\n return pulumi.get(self, \"display_name\")", "def display_name(self) -...
[ "0.8412046", "0.8412046", "0.8412046", "0.8357502", "0.82374394", "0.8192522", "0.8192522", "0.8192522", "0.8192522", "0.8192522", "0.8192522", "0.8192522", "0.8192522", "0.8192522", "0.81876546", "0.81819737", "0.81461984", "0.81218576", "0.81218576", "0.81218576", "0.812185...
0.85988116
9
Takes a list as input and returns true if that list contains any duplicates
def has_duplicates(t): # Each element will check each following elements for its duplicate # An element looking for duplicates before itself is redundant for i in range(len(t)): for n in t[i + 1:]: if t[i] == n: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def has_duplicates(list):\n for i in list:\n if list.count(i) > 1:\n return True\n else:\n return False", "def has_duplicates(lst):\n\n return len(lst) != len(set(lst))", "def check_if_duplicates_list(list_of_elems):\n set_of_elems = set()\n for elem in list_of_e...
[ "0.893437", "0.87173915", "0.8593354", "0.8572301", "0.855879", "0.84382254", "0.83984", "0.8105748", "0.80819404", "0.80444264", "0.7798305", "0.76281554", "0.75072545", "0.7469977", "0.7465582", "0.74105126", "0.73536503", "0.7347627", "0.7340402", "0.7337335", "0.72846127"...
0.78312427
10
Splits away leading directory of path. Presumes '/' path delimiter.
def split_leading_directory(file_path): delim = '/' path_split = file_path.split(delim) if len(path_split) > 0: lead_dir = path_split[0] else: lead_dir = '' if len(path_split) > 1: rest = delim.join(path_split[1:]) else: rest = '' return lead_dir, rest
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def path_split(path):\n res = []\n while path:\n path, tail = os.path.split(path)\n res.insert(0, tail)\n if path == '/':\n res.insert(0, '/')\n break\n return res", "def splitpath(path):\n\n # FIXME perhaps call op.split repe...
[ "0.73245794", "0.71114737", "0.7031778", "0.70195454", "0.69826", "0.6950468", "0.69380575", "0.6923055", "0.69161046", "0.6889529", "0.68892306", "0.686775", "0.6789593", "0.67795545", "0.67572874", "0.6732676", "0.6690081", "0.66891843", "0.6658002", "0.6622074", "0.6621523...
0.8492943
0
r""" Gets the figure specified by the combination of ``self.figure_id`` and ``self.new_figure``. If ``self.figure_id == None`` then ``plt.gcf()`` is used. ``self.figure_id`` is also set to the correct id of the figure if a new figure is created. Returns
def get_figure(self): import matplotlib.pyplot as plt if self.new_figure or self.figure_id is not None: self.figure = plt.figure(self.figure_id) else: self.figure = plt.gcf() self.figure_id = self.figure.number return self.figure
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_figure(self):\n import mayavi.mlab as mlab\n if self.new_figure or self.figure_id is not None:\n self.figure = mlab.figure(self.figure_id)\n else:\n self.figure = mlab.gcf()\n\n self.figure_id = self.figure.name\n\n return self.figure", "def get_fi...
[ "0.73566234", "0.6101475", "0.5927654", "0.5881135", "0.56253684", "0.5606781", "0.5527048", "0.5520235", "0.5291062", "0.52675766", "0.52652264", "0.5220528", "0.5199784", "0.51419324", "0.51240903", "0.5119816", "0.5119214", "0.50398046", "0.50140595", "0.5009911", "0.50035...
0.81340826
0
Returns action to perform for the current observations.
def _get_one_action(self, raw_obs, id): active = raw_obs['left_team'][id] # Corner etc. - just pass the ball if raw_obs['game_mode'] != 0: return 9 #football_action_set.action_long_pass if raw_obs['ball_owned_team'] == 1: if self._last_actions[id] == 21: #footbal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def action(self, observation):\n return self.actor.get_action(observation)", "def get_action(self):\n raise NotImplementedError", "def obtain_action(self):\r\n\t\treturn", "def action(self, observations):\n observations = observations.float()\n policy_hidden = self.policy_backbone...
[ "0.77959067", "0.7173866", "0.71702975", "0.7014548", "0.69839495", "0.69839495", "0.69839495", "0.69839495", "0.69839495", "0.69839495", "0.6982552", "0.694587", "0.68741995", "0.6860291", "0.68548673", "0.6822718", "0.6771867", "0.6710868", "0.66180587", "0.6590441", "0.658...
0.0
-1
Computes distance between two objects.
def _object_distance(self, object1, object2): return np.linalg.norm(np.array(object1) - np.array(object2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def distance(self, other):\n ...", "def distance(self, a, b):\n raise NotImplementedError()", "def distance(a, b):\n return math.sqrt((a.x - b.x) ** 2 + (a.y - b.y) ** 2)", "def calculate_distance(asteroid_1: Asteroid, asteroid_2: Asteroid) -> float:\n dy = asteroid_2.y - asteroid_1.y\n ...
[ "0.765481", "0.7578957", "0.7493063", "0.7491186", "0.74849993", "0.7449511", "0.7418002", "0.7414913", "0.73544014", "0.7350698", "0.73268986", "0.73161024", "0.7302133", "0.7293353", "0.7290313", "0.72874266", "0.728511", "0.72841245", "0.72505933", "0.7247115", "0.7233473"...
0.83006185
0
Returns all the given subclasses and their subclasses recursively for the given class
def get_flattened_subclasses(cls): classes = cls.__subclasses__() return list(itertools.chain(classes, *map(lambda x: get_flattened_subclasses(x), classes)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def class_hierarchy(clslist):\n for cls in clslist:\n subclass_list = cls.__subclasses__()\n if subclass_list:\n for subcls in class_hierarchy(subclass_list):\n yield subcls\n else:\n yield cls", "def get_subclasses(classes,...
[ "0.75190705", "0.7409084", "0.73722875", "0.7277722", "0.7197352", "0.7083269", "0.70594907", "0.69342864", "0.6914964", "0.690342", "0.6856313", "0.68031055", "0.67755306", "0.6742387", "0.673829", "0.6701982", "0.669175", "0.6652152", "0.6652085", "0.6649734", "0.66484386",...
0.74525094
1
Purpose plot a scatter plot of PCx against PCy. Arguments x, y (Required) PC dimension to plot as scatter Note that PC begin at 1 (and not at zero, as might be expected) filename (Required) spot_cols (Optional, default="black" or self.set_cols()) list of colours for the samples, should be the same length as the number ...
def scatter(self, x, y, filename=None, spot_cols=None, spots=True, label=False, alpha=0.8, spot_size=40, label_font_size=7, cut=None, squish_scales=False, only_plot_if_x_in_label=None, **kargs): assert filename, "scatter(): Must provide a filename" labels = self.labels xdata = sel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def loading_scatter(self, x, y, label_key, filename=None, spot_cols=None, spots=True, label=False, alpha=0.8, \n topbots=False,\n spot_size=40, label_font_size=7, cut=None, squish_scales=False, **kargs):\n assert filename, \"loading_scatter: Must provide a filename\"\n assert label_key,...
[ "0.7152998", "0.6240082", "0.61482203", "0.5896808", "0.5872015", "0.58640546", "0.5832496", "0.5795686", "0.5737249", "0.57036185", "0.5703613", "0.56881475", "0.56703955", "0.5627829", "0.56193817", "0.56104606", "0.5579436", "0.555795", "0.5540873", "0.5515536", "0.5488698...
0.7712983
0
Computes the accuracy over the k top predictions for the specified values of k
def accuracy(output, target, topk=(1,)): with torch.no_grad(): maxk = max(topk) batch_size = target.size(0) _, pred = output.topk(maxk, 1, True, True) pred = pred.t() correct = pred.eq(target.view(1, -1).expand_as(pred)) res = [] for k in topk: c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def topk_accuracy(y, y_pred, k=2):\n pred = []\n for i in range(len(y)):\n if y[i] in y_pred[i][:k]:\n pred.append(1)\n else:\n pred.append(0)\n return sum(pred) / len(pred)", "def accuracy(y_pred, y_actual, topk=(1, )):\n maxk = max(topk)\n batch_size = y_actua...
[ "0.8331214", "0.8284662", "0.82381004", "0.8229767", "0.82202226", "0.81864446", "0.81847763", "0.8175173", "0.8171541", "0.81699467", "0.81664646", "0.81645083", "0.81637454", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "...
0.78618157
71
Creates an instance of this model from a dictionary
def from_dictionary(cls, dictionary): if dictionary is None: return None # Extract variables from the dictionary api_group = dictionary.get('apiGroup') api_version = dictionary.get('apiVersion') kind = dictionary.get('kind') name = dic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def from_dictionary(cls,\n dictionary):\n if dictionary is None:\n return None\n\n # Extract variables from the dictionary\n id = dictionary.get('id')\n name = dictionary.get('name')\n mtype = dictionary.get('type')\n usage_bytes = diction...
[ "0.83181584", "0.8168118", "0.8168118", "0.8118749", "0.8089047", "0.79787344", "0.7949278", "0.79231393", "0.7898951", "0.78923255", "0.788838", "0.7882321", "0.7882212", "0.7876749", "0.78585315", "0.7836853", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407",...
0.7400107
96
Returns the size in pixels of a single block.
def get_block_size(self, img_start): pattern_size = 7 left, top = img_start block_height, block_width = 0, 0 for i in range(1, self.image.width - left): if self._get_pixel((left + i * pattern_size, top)) == WHITE: block_width = i break ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def block_size(self, block_id): # -> int:\n ...", "def getSize(self):\n return self.__width * self.__height;", "def get_block_size( coords ):\n return [ x[1]-x[0] for x in coords ]", "def block_size(self):\n\n return self._block_size", "def physical_block_size(self) -> int:\n ...
[ "0.74420977", "0.7228189", "0.7151584", "0.7063341", "0.69956255", "0.6985068", "0.6894628", "0.68554443", "0.6828323", "0.6828323", "0.68120444", "0.68100023", "0.6800226", "0.6677552", "0.6677552", "0.6677552", "0.6677552", "0.6677552", "0.6677552", "0.6677552", "0.66701406...
0.6560295
29
Temporal Convolution Resnet model parameters.
def model_parameters(parser_nn): parser_nn.add_argument( '--channels', type=str, default='24, 36, 36, 48, 48, 72, 72', help='Number of channels per convolutional block (including first conv)', ) parser_nn.add_argument( '--debug_2d', type=int, default=0, help='If 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def init_params(self):\n self.conv = Conv(self.conv_layers[0][-1], self.out_channels, padding=self.padding,stride=self.stride)\n self.W = torch.randn(self.num_labels, self.cout_numel, requires_grad=True)\n self.T = torch.randn(self.num_labels, self.num_labels, requires_grad=True)", "def setu...
[ "0.6263059", "0.6099165", "0.60632074", "0.59992933", "0.5919151", "0.5877322", "0.5795078", "0.5739855", "0.5739855", "0.56784326", "0.5637543", "0.5635012", "0.5622107", "0.56200534", "0.5604754", "0.55930376", "0.5582036", "0.55811", "0.55510706", "0.5548105", "0.55380595"...
0.53028774
47
Test that the repr method returns an official representation of the object as a string.
def test_repr(self): # Create a Resource object resource = Resource(1, "White Noise", Name("Don", "", "DeLillo"), "Delillo's White Noise follows narrator Jack "\ "Gladney, a professor at a small Liberal Arts "\ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_repr(self):\n dummy = DummyCryptographicObject()\n repr(dummy)", "def test_repr():\n c = Circle(4) \n assert c.__repr__() == 'Circle(4)'", "def repr_(object_):\n return repr(object_)", "def test_repr(self):\n self.assertEqual(repr(self.card), \"A of Spades\")", "def r...
[ "0.8037619", "0.7992412", "0.7988347", "0.7737927", "0.76742977", "0.7670939", "0.7617808", "0.7584389", "0.7562513", "0.75466436", "0.7544901", "0.7543479", "0.7535306", "0.7476006", "0.7457964", "0.7454906", "0.74449784", "0.74011624", "0.7344937", "0.7343532", "0.73381126"...
0.7253878
25
Renders the index page
def index(request): return render(request, "HotelMgmt/index.html")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index(self):\n\t\treturn render_template('index.html')", "def index():\r\n return render_template('index.html')", "def index():\n return render_template('index.html')", "def index():\n\n\treturn(render_template('index.html'))", "def index():\n return render_template('index....
[ "0.87320435", "0.86797976", "0.86558753", "0.8623816", "0.86093783", "0.86093783", "0.850755", "0.84997207", "0.84997207", "0.8445567", "0.84138143", "0.8405619", "0.8405619", "0.8405619", "0.83736295", "0.8371445", "0.83562005", "0.83507544", "0.8338923", "0.8338923", "0.833...
0.0
-1
Select subset of images from dataset. User can specify desired classes and desired number of images per class.
def limit_pics(X, y, classes=None, nim=None) : n, d = X.shape if classes is None : classes = np.unique(y) if nim is None : nim = n num_classes = len(classes) X1 = np.zeros((num_classes*nim, d), dtype=float) y1 = np.zeros(num_classes*nim, dtype=int) index = 0 for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def select_num_imgs_per_class(cls, examples, labels, num_imgs_in_val):\n num_classes = len(set(labels))\n\n # def partition_train_set(self, imgs, num_imgs_in_val):\n labeled = []\n labeled_y = []\n unlabeled = []\n unlabeled_y = []\n\n cts = {x: 0 for x in range(num...
[ "0.6683432", "0.6534901", "0.63395363", "0.63005453", "0.6156549", "0.61430216", "0.6118677", "0.61074424", "0.6003936", "0.5980434", "0.5970631", "0.5958463", "0.59184605", "0.59095705", "0.5868378", "0.5859251", "0.58589774", "0.58434796", "0.58376586", "0.58266586", "0.582...
0.5867289
15
Returns list of discounted rewards. Rewards closer at the beginning are more important so they are very high. The last reward is equal to 1 (before normalizing) so the first reward has a huge value (before normalizing). Try printing it to see.
def discount_and_normalize_rewards(self, episode_rewards): # Get empty array with the same size as the rewards array discounted_episode_rewards = np.zeros_like(episode_rewards) # Variable that stores value of the discounted reward being calculated by the loop current_reward = 0.0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def discount(rewards):\n sum_so_far = 0.0\n rewards_so_far = []\n for r in rewards[::-1]:\n sum_so_far = sum_so_far * gamma_discount + r\n rewards_so_far.append(sum_so_far)\n return rewards_so_far[::-1]", "def compute_discounted_rewards(self, rewards):\n discounted_rewards = []\n...
[ "0.78996134", "0.7814217", "0.77600056", "0.7476073", "0.7241336", "0.7199172", "0.7164052", "0.7131136", "0.70824206", "0.70785534", "0.69486713", "0.6854979", "0.68349063", "0.68209493", "0.6813501", "0.6785669", "0.67732877", "0.6752903", "0.67359066", "0.6688331", "0.6578...
0.67717427
17
Tests that a token is created for a registered user.
def test_create_token_for_user(self): credentials = {'email': 'testuser@gmail.com', 'password': 'Testpass12'} get_user_model().objects.create_user(**credentials) response = self.client.post(URL_TOKEN, credentials) # Check that the response is HTTP 200, and contains a token. se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_token_for_user(self):\n payload = {'email': 'test1@test1.ri',\n 'password': 'testPassWord',\n 'time_zone': 'Europe/Dublin'}\n create_user(**payload)\n res = self.client.post(TOKEN_URL, payload)\n\n self.assertIn('token', res.data)\n ...
[ "0.83158964", "0.8310792", "0.82947844", "0.82103336", "0.8175168", "0.81079465", "0.7993225", "0.7934675", "0.7851665", "0.77336663", "0.7680344", "0.76601297", "0.76270086", "0.7589662", "0.75591135", "0.75582176", "0.7542088", "0.75251675", "0.7519745", "0.7518445", "0.750...
0.787144
8
Tests that token creation fails if the credentials are invalid.
def test_create_token_invalid_credentials(self): credentials = {'email': 'testuser@gmail.com', 'password': 'Testpass12'} get_user_model().objects.create_user(**credentials) invalid_credentials = { 'email': 'testuser@gmail.com', 'password': 'wrong' } resp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_token_invalid_credentials(self):\n # create user\n create_user(email='test@gmail.com', password='abcd1234')\n payload = {\n 'email': 'test@gmail.com',\n 'password': 'wrong'\n }\n # We do not expect a token and should get a HTTP 400\n r...
[ "0.8308841", "0.8260302", "0.823128", "0.8173536", "0.8032876", "0.7992048", "0.79362285", "0.772781", "0.76961076", "0.74938637", "0.741325", "0.7393066", "0.7329656", "0.713969", "0.71112144", "0.71088314", "0.7099197", "0.70930177", "0.70835024", "0.70759", "0.7057146", ...
0.80930585
4
Tests that a token is not created if the user does not exist.
def test_create_token_for_not_user(self): credentials = {'email': 'testuser@gmail.com', 'password': 'Testpass12'} response = self.client.post(URL_TOKEN, credentials) # Check that the response is HTTP 400, and does not contain a token. self.assertNotIn('token', response.data) se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_token_no_user(self):\n res = self.client.post(TOKEN_URL, self.mock_user)\n\n self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST)\n self.assertNotIn('token', res.data)", "def test_create_token_no_user(self):\n payload = {\n 'email': 'test@gmail.com...
[ "0.8057524", "0.78694177", "0.7790534", "0.7706565", "0.76839775", "0.75999886", "0.7444071", "0.7440442", "0.7425865", "0.73858494", "0.7290442", "0.72734386", "0.726506", "0.7256192", "0.72112596", "0.7205989", "0.7199449", "0.7197341", "0.71766186", "0.71726346", "0.716464...
0.7811398
2
Tests that email and password are mandatory for creation.
def test_create_token_missing_field(self): invalid_credentials = {'email': 'testuser@gmail.com', 'password': ''} response = self.client.post(URL_TOKEN, invalid_credentials) # Check that the response is HTTP 400, and does not contain a token. self.assertNotIn('token', response.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_private_create_user_without_email(self):\n with pytest.raises(ValueError) as exinfo:\n EmailUser.objects._create_user(None, None, False, False)\n self.assertIn('email must be set', str(exinfo.value))", "def test_create_no_email(self):\n\n self.portal.portal_properties.sit...
[ "0.79284734", "0.77695775", "0.75586504", "0.74948335", "0.74623394", "0.7448135", "0.7425934", "0.74012655", "0.73980963", "0.7395952", "0.73956823", "0.7381255", "0.73590755", "0.7357754", "0.73532873", "0.7350497", "0.73196065", "0.7312459", "0.7301327", "0.7295431", "0.72...
0.0
-1
Tests that accessing user page without authentication fails.
def test_retrieve_unauthorized_user(self): response = self.client.get(URL_ME) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_not_authenticated(self):\n pass # lint-amnesty, pylint: disable=unnecessary-pass", "def test_not_authenticated(self):\n pass # lint-amnesty, pylint: disable=unnecessary-pass", "def test_unauthenticated_user_denial(self):\n\n self.response = self.client.get(\"/api/users/users_lis...
[ "0.81131846", "0.81131846", "0.80508745", "0.8021345", "0.8021345", "0.8021345", "0.79561496", "0.78965056", "0.78510743", "0.78510743", "0.78510743", "0.78510743", "0.7839902", "0.781745", "0.78173894", "0.77228755", "0.7689256", "0.7689256", "0.7674235", "0.7658041", "0.765...
0.7871869
8
Tests retrieving profile of a user who has been logged in.
def test_retrieve_profile(self): response = self.client.get(URL_ME) self.assertEqual(response.status_code, status.HTTP_200_OK) # Check that the user object returns as expected. There is no need # (and it is not secure) to return a password to client side. self.assertEqual(resp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_user_profile(self):\n with self.client as c:\n with c.session_transaction() as sess:\n sess[CURR_USER_KEY] = self.testuser_id\n\n address = \"1215 Brookview Ave, Kettering, Ohio 45409\"\n\n resp = c.get(f\"/users/8989/\")\n html = resp.get_...
[ "0.7859189", "0.78280014", "0.7800017", "0.7798376", "0.7797702", "0.7777113", "0.77303016", "0.76658076", "0.7586402", "0.75843865", "0.7558497", "0.7556109", "0.75414324", "0.751911", "0.7500028", "0.7459909", "0.7436891", "0.737201", "0.73684394", "0.7365663", "0.7363729",...
0.79114914
0
Get a random element from the collection.
def getRandom(self) -> int: if self.counts: # key = list(self.counts.keys()) return random.choice(self.counts.keys(), weights=list(self.counts.values())) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def random_element(self) -> 'PFElement':\n return random.choice(list(iter(self)))", "def _rand_elem(self, iterable):\n\n lst = list(iterable)\n idx = self._rand_int(0, len(lst))\n return lst[idx]", "def getRandom(self):\n random_index = randint(0, len(self.list_val)-1)\n ...
[ "0.7651958", "0.7149041", "0.70814615", "0.7044879", "0.70404017", "0.7034526", "0.6959262", "0.69563407", "0.68719393", "0.68376184", "0.6797525", "0.670551", "0.6697882", "0.6692588", "0.6692588", "0.6692588", "0.6692588", "0.66815263", "0.66744214", "0.6673934", "0.6651395...
0.0
-1
Returns the acceleration induced by the body on an object at location (x,y).
def compute_acceleration(self, x, y): a_x = G * self.m / (x*x + y*y) * -x/(np.sqrt(x*x + y*y)) a_y = G * self.m / (x*x + y*y) * -y/(np.sqrt(x*x + y*y)) return np.array([a_x, a_y])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def acceleration(self):\n return self.__accel", "def acceleration(self):\n ux,uy = np.gradient(self._obj['u'],self._obj['x'],self._obj['y'],axis=(0,1))\n vx,vy = np.gradient(self._obj['v'],self._obj['x'],self._obj['y'],axis=(0,1))\n \n ax = self._obj['u']*ux + self._obj['v']*uy...
[ "0.71829116", "0.6957403", "0.69539917", "0.6814675", "0.6716061", "0.6596599", "0.65834486", "0.6523671", "0.64646435", "0.6440626", "0.63133234", "0.628352", "0.59962666", "0.59714353", "0.59545964", "0.5947515", "0.59436685", "0.5922621", "0.59064925", "0.5887046", "0.5876...
0.71800154
1