query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Apply pytorch's numpy() to all tensors in this container.
def XTiz(YKHO): for H5ew, BWXx in YKHO.__dict__.items(): YKHO.__dict__[H5ew] = BWXx.numpy() return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XTiz(YKHO) -> oyIN.ndarray:\n return YKHO.tensor.numpy()", "def XTiz(WKvO):\n if isinstance(WKvO, ht2j.Tensor):\n WKvO = WKvO.detach().cpu().numpy()\n elif isinstance(WKvO, ZylS.Tensor):\n WKvO = WKvO.numpy()\n return WKvO.astype(oyIN.float64)", "def fWyW(YKHO, *qIxc: numpy.array,...
[ "0.7050513", "0.67372775", "0.6470698", "0.6256704", "0.6256704", "0.6159221", "0.6120382", "0.6105047", "0.6089257", "0.600709", "0.5993618", "0.59524715", "0.5920927", "0.57963824", "0.5777872", "0.5756638", "0.5746586", "0.56652826", "0.5582875", "0.5530412", "0.55053324",...
0.6605963
2
Returns whether the stack is empty.
def lsmZ(YKHO) -> bool: return len(YKHO.q1) >= 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO) -> bool:\n return len(YKHO.stack) == 0", "def A4KR(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(Y...
[ "0.9207258", "0.91276956", "0.90185934", "0.9000551", "0.89481044", "0.89481044", "0.8914844", "0.8904091", "0.8881541", "0.88791907", "0.8867761", "0.87955654", "0.8768181", "0.8748518", "0.87393755", "0.8728073", "0.8719241", "0.87090814", "0.87090814", "0.85431594", "0.850...
0.0
-1
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def PYz4(geh0): geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1' geh0.headers['Cache-Control'] = 'public, max-age=0' return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0", "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0", "def PY...
[ "0.8221727", "0.8220911", "0.8220911", "0.8220911", "0.8220911", "0.81940746", "0.81111443", "0.80852413", "0.79712725", "0.78637785", "0.7659569", "0.72363365", "0.71586627", "0.71513546", "0.71513546", "0.71502376", "0.71502376", "0.7140211", "0.7135492", "0.7126684", "0.71...
0.8161616
29
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum() * 100
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7796294", "0.7760558", "0.7759004", "0.77567077", "0.76577055", "0.76577055", "0.76577055", "0.76577055", "0.7585655", "0.743143", "0.7407772", "0.73941606", "0.7358175", "0.73174125", "0.72689486", "0.72623265", "0.72614294", "0.7256868", "0.723019", "0.7214918", "0.72017...
0.0
-1
Compute the mean and standarddeviation with sum and squaresum. This method also maintains the moving average on the master device.
def C2ER(YKHO, MCOv, vF4Z, zNig): assert zNig > 1, 'BatchNorm computes unbiased standard-deviation, which requires size > 1.' JBMS = MCOv / zNig Ji8c = vF4Z - MCOv * JBMS edb9 = Ji8c / (zNig - 1) G7WF = Ji8c / zNig YKHO.running_mean = (1 - YKHO.momentum) * YKHO.running_mean + YKHO.momentum * JBM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mjrD(JyoU):\n JBMS = 0\n M1Jx = 0\n gGnb = 0\n for nPrm, bGrB, bGrB in JyoU:\n SlcE = nPrm.size(0)\n nPrm = nPrm.view(SlcE, nPrm.size(1), -1)\n JBMS += nPrm.mean(2).sum(0)\n M1Jx += nPrm.std(2).sum(0)\n gGnb += SlcE\n return (JBMS / gGnb, M1Jx / gGnb)", "def ...
[ "0.66462785", "0.64786965", "0.64267075", "0.64203566", "0.6418312", "0.6347366", "0.62360185", "0.62356174", "0.6232282", "0.62295747", "0.62187797", "0.6194624", "0.61598617", "0.6144616", "0.6137827", "0.61261624", "0.61238027", "0.61215687", "0.6107176", "0.60992616", "0....
0.7329819
0
Remove all BPS (Bands, People, Setlist) entries for this show.
def s8IS(YKHO, GViE): for Ebru in LdLH.query.filter_by(ShowID=GViE).all(): NCls.session.delete(Ebru) for a70H in wIry.query.filter_by(ShowID=GViE).all(): NCls.session.delete(a70H) for ihvr in vIJy.query.filter_by(ShowID=GViE).all(): NCls.session.delete(ihvr) NCls.session.commit()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ayrP(YKHO):\n YKHO.wells = []", "def HhWO(YKHO):\n jzdc = YKHO.get_bolts()\n for YRbF in YKHO.get_bolts():\n if YRbF.y > ralU:\n jzdc.remove(YRbF)\n YKHO.set_plyrbolts(0)\n elif YRbF.y <= -hlPc:\n jzdc.remove(YRbF)", "def HkMl(YKHO):\n YKHO._option...
[ "0.63737714", "0.6121931", "0.5946539", "0.58252776", "0.5700144", "0.5693185", "0.5645602", "0.562517", "0.56059253", "0.5601287", "0.5601287", "0.5587865", "0.55781394", "0.5577015", "0.55397683", "0.55282784", "0.5525994", "0.5524189", "0.5520914", "0.55065125", "0.5489033...
0.7064796
0
Error messages are prefaced with [STDERR].
def BHBL(YKHO, bo34: Logger, AZgw: MockerFixture) -> None: D5gV = F254() D5gV.session_id = '123' DCgT = FRRv(D5gV) bo34.addHandler(DCgT) E_AI = AZgw.patch('matl_online.tasks.OutputHandler.send') jMN5 = 'MATL run-time error:\nline 1\nline 2' bo34.info(jMN5) E_AI.assert_not_called() as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p_yA(tO9_):\n print(tO9_, file=HwRy.stderr)", "def Y2SS(tO9_):\n print(tO9_, file=HwRy.stderr)", "def GdbD(tO9_):\n tO9_ = 'ERROR: {0}\\n'.format(tO9_)\n HwRy.stderr.write(tO9_)", "def GaGw(jMN5):\n print(jMN5, file=QeD9)", "def P1dF(Ol8d):\n print(Ol8d, file=HwRy.stderr)", "def P1d...
[ "0.72245663", "0.71898955", "0.7165053", "0.71384954", "0.7119173", "0.7086841", "0.69864136", "0.6986005", "0.6959528", "0.69459236", "0.6938232", "0.69247705", "0.68971133", "0.6886008", "0.687208", "0.6836156", "0.68293613", "0.6817481", "0.681233", "0.6791641", "0.6791444...
0.0
-1
Sample an action from an action probability distribution output by the policy network.
def rHvI(BFeB): BFeB = BFeB - oyIN.finfo(oyIN.float32).epsneg JcvF = [int(oyIN.nonzero(oyIN.random.multinomial(1, XP5J))[0]) for XP5J in BFeB] return JcvF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u_ln(rNYq):\n XZ7C = cb_Q.run(Qabx, {Z4kZ: [rNYq]})\n XeOP = oyIN.random.choice(TcwO, p=XZ7C[0])\n return XeOP", "def su1c(Qabx, QTBn):\n JMmE, BJo2 = Qabx.shape\n xlpn = oyIN.arange(BJo2)\n return oyIN.random.choice(xlpn, p=Qabx[QTBn])", "def su1c(YKHO, W061, oJto):\n raise NotImpleme...
[ "0.7927682", "0.78702253", "0.78041124", "0.74795485", "0.7469959", "0.7424221", "0.7419444", "0.7416112", "0.741265", "0.73738307", "0.73725945", "0.73670685", "0.73599637", "0.73405933", "0.7316091", "0.7311871", "0.7306006", "0.7279277", "0.72479177", "0.7214168", "0.71813...
0.74728686
4
Get variables to record during simulation. Returns
def bFoX(YKHO): Dn5M = [] if any({'spiketrains', 'spikerates', 'correlation', 'spikecounts', 'hist_spikerates_activations'} & YKHO._plot_keys) or 'spiketrains_n_b_l_t' in YKHO._log_keys: Dn5M.append(str('spikes')) if 'mem_n_b_l_t' in YKHO._log_keys or 'v_mem' in YKHO._plot_keys: Dn5M.append(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jbKh(YKHO):\n return YKHO.variables", "def jbKh(YKHO):\n return [YKHO.g_t, YKHO.m_t]", "def qiMC(YKHO):\n uzQA = [YKHO[imdf] for imdf in YKHO.statVars]\n Khf1 = [YKHO[imdf] for imdf in YKHO.timeVars]\n return uzQA + Khf1", "def jbKh(YKHO):\n return YKHO.variables", "def UXIq(YKHO) -> ...
[ "0.7280395", "0.7114551", "0.6989882", "0.6989056", "0.6961578", "0.6958487", "0.69002414", "0.6894577", "0.6826803", "0.6781089", "0.6767439", "0.6723185", "0.6701707", "0.66958815", "0.6643457", "0.663752", "0.6595439", "0.65801805", "0.6514942", "0.64942634", "0.6468738", ...
0.713675
1
Generate JWT Token for test authentication.
def HORt(uJjO, CJbn=False): RNEE = qcWV.datetime.utcnow() return DvJO.encode({'sub': uJjO, 'iat': RNEE, 'exp': RNEE + qcWV.timedelta(hours=1) if not CJbn else RNEE - qcWV.timedelta(minutes=5)}, GPtr.SECRET_KEY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cWAO(YKHO):\n import jwt\n from datetime import datetime, timedelta\n from django.conf import settings\n JRYC = datetime.now() + timedelta(days=60)\n eOtH = jwt.encode({'id': YKHO.pk, 'username': YKHO.username, 'exp': int(JRYC.strftime('%s'))}, settings.SECRET_KEY, algorithm='HS256')\n return...
[ "0.83058345", "0.82918435", "0.81699115", "0.79178643", "0.7912147", "0.7807201", "0.77179766", "0.7675893", "0.76463836", "0.76463836", "0.76463836", "0.7559545", "0.75385803", "0.75092405", "0.7504505", "0.74325085", "0.7415941", "0.7385624", "0.73287976", "0.7273556", "0.7...
0.63344246
95
Generate a random string of fixed length
def BWvy(a__r=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for bGrB in range(a__r)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def e7Tf(u54L):\n return ''.join((tuKI...
[ "0.8680464", "0.8573714", "0.85486245", "0.85297275", "0.85209286", "0.84331024", "0.8432044", "0.84157014", "0.84120053", "0.8389201", "0.8345882", "0.8343962", "0.83406156", "0.83348686", "0.83240855", "0.82986933", "0.82911193", "0.8281826", "0.82818025", "0.82811046", "0....
0.7778832
82
Plot the lift vector as a kernel density estimation. This is a private function. For a public interface, see plot_positive_lift().
def GoNl(YKHO, qyBB, Gk35): SOJD = YKHO.lift[qyBB][Gk35] aNZO = uuEx.kdeplot(SOJD, shade=True) zFiD = aNZO.get_lines()[0] WKvO, LVAh = zFiD.get_data() ZHfW = WKvO > 0 WKvO, LVAh = (WKvO[ZHfW], LVAh[ZHfW]) aNZO.fill_between(WKvO, y1=LVAh, alpha=0.5, facecolor='red') if len(YKHO.variant_bu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj9G(WTkW, R89E, cPRS):\n hkxX, F_On = AQnM(WTkW)\n _RNt, UkX0, xQHa = F_On\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(111, projection='stereonet')\n QrM1.hold(True)\n aNZO.density_contourf(R89E, cPRS)\n aNZO.line(_RNt[0], _RNt[1], 'r^', label='sigma1', markersize=18)\n aNZO.line(...
[ "0.5444048", "0.53254974", "0.5290202", "0.5228908", "0.51871353", "0.5185597", "0.51764834", "0.5174385", "0.51722497", "0.5166236", "0.5132964", "0.5050319", "0.501193", "0.5001828", "0.49989724", "0.4973415", "0.495442", "0.49384078", "0.4923361", "0.48951834", "0.48850557...
0.6817418
0
Returns a list with the indices of the nonabsorbing states of the matrix m
def zCjf(r8hN): a1PO = list(range(len(r8hN))) for Mkmy in range(len(r8hN)): if sum(r8hN[Mkmy]) == 0: a1PO.remove(Mkmy) return a1PO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sspq(r8hN):\n jzdc = []\n for Mkmy in range(len(r8hN)):\n if sum(r8hN[Mkmy]) == 0:\n jzdc.append(Mkmy)\n return jzdc", "def QD3Q(ZHfW):\n return oyIN.nonzero(oyIN.ravel(ZHfW - 1, order='C'))[0]", "def xBHi(YKHO, yvGc):\n return [YRbF for YRbF, wEf2 in enumerate(yvGc) if oyI...
[ "0.74737734", "0.6273748", "0.6081004", "0.6081004", "0.6081004", "0.5884089", "0.5731453", "0.5705016", "0.5695767", "0.5660442", "0.56407326", "0.5636819", "0.5619551", "0.5594982", "0.5540036", "0.55303717", "0.5521208", "0.55203396", "0.54813194", "0.5477717", "0.54296315...
0.67774504
1
Compares two JSON values for equality
def _bjF(NenA, GZ8X): return Ampr.eq(NenA, GZ8X)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _bjF(IlMF, Lil9):\n return IlMF.items() <= Lil9.items()", "def SVF3(NenA, GZ8X):\n return aHEA(NenA) == aHEA(GZ8X)", "def xa14(YKHO, Elif) -> bool:\n if qQXR.dumps(YKHO.data, sort_keys=True) == qQXR.dumps(Elif.data, sort_keys=True):\n return True\n else:\n return False", "def YV...
[ "0.82151186", "0.79170644", "0.7396203", "0.71702", "0.6966213", "0.692302", "0.65704304", "0.656646", "0.64911", "0.6481012", "0.6456275", "0.6456275", "0.6439256", "0.6424932", "0.64065677", "0.6404577", "0.6372428", "0.6308959", "0.63035566", "0.63012934", "0.6256624", "...
0.8457077
0
Checks that the real path of `path2` is inside `path1`.
def pmnZ(daXS, AUB0, AJ5d=True): EBgd = khtY.normpath(daXS) HpuQ = khtY.normpath(khtY.join(daXS, AUB0)) if khtY.relpath(EBgd, HpuQ).endswith(khtY.basename(EBgd)): if AJ5d: raise ValueError("Invalid path '%s'" % AUB0) return False return HpuQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O4_8(YKHO, jzdc, Fg_i):\n EBgd = jzdc.rstrip(Hy7s.sep).split(Hy7s.sep)\n HpuQ = Fg_i.rstrip(Hy7s.sep).split(Hy7s.sep)\n return EBgd[:len(HpuQ)] == HpuQ", "def Q_AL(pmON: Path, Elif: Path):\n try:\n GkAb(pmON).relative_to(Elif)\n except ValueError:\n return False\n else:\n ...
[ "0.7348888", "0.7168463", "0.70453674", "0.6925065", "0.69230103", "0.6644422", "0.6269746", "0.625992", "0.6188712", "0.618065", "0.61572427", "0.6140488", "0.60960907", "0.6062624", "0.60051584", "0.6004871", "0.59513336", "0.5907477", "0.5897944", "0.58460873", "0.5807989"...
0.74305385
0
Returns word_list with words removed, that were likely read incorrectly. Or come from somerhing that wasn't supposed to be read in the first place.
def ljd_(vwCE, Kolf='char_confidence', yA5_=0.85, H2v2=None, **B2fa): if Kolf is None: return vwCE elif Kolf == 'char_confidence': for GIN8 in vwCE: GIN8['char_confidence'] = (GIN8['confidence'] + 0.005) ** (1 / len(GIN8['text'])) Aofo = [] for GIN8 in vwCE: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L0Rn(YKHO):\n YKHO.bad_words = YKHO.read_word_file(YKHO.bad_word_file)", "def EPjn(YKHO, V22M):\n return [GIN8 for GIN8 in V22M if GIN8.lower() not in YKHO.stopwords]", "def ehwG(V22M):\n BcCR = yELo.SIZE\n return [GIN8 for GIN8 in V22M if GIN8 and '-' not in GIN8 and (len(GIN8) <= BcCR)]", "...
[ "0.75039864", "0.68356854", "0.68268657", "0.6726498", "0.6712652", "0.669339", "0.6674355", "0.66189545", "0.66034395", "0.65762395", "0.6546424", "0.6536305", "0.6529826", "0.6515039", "0.6488991", "0.6475345", "0.6472976", "0.6472613", "0.6436441", "0.64308923", "0.6422168...
0.0
-1
Merges list of words into one.
def sYht(vwCE, zrwS=None): def qqgr(vC9B, H5ew): KCHu = 0 for yzQ0 in vC9B: KCHu += yzQ0[H5ew] return KCHu / len(vC9B) Aofo = {} Aofo['longleft'] = qqgr(vwCE, 'longleft') Aofo['longright'] = qqgr(vwCE, 'longright') Aofo['top'] = qqgr(vwCE, 'top') Aofo['bottom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4OG(yzQ0, epBp):\n xXGI = list(yzQ0)\n eDcV = list(epBp)\n return Qsdn('', xXGI, eDcV)", "def Y4OG(jWe2):\n dixj = []\n for Q6uT in jWe2:\n V22M = ' '.join(Q6uT)\n dixj.append(V22M)\n return dixj", "def JqsR(YKHO, V22M):\n return ' '.join(V22M)", "def ac5o(V22M):\n ...
[ "0.71951133", "0.70604545", "0.6652419", "0.6483666", "0.6456939", "0.6455576", "0.6123326", "0.6006835", "0.59596854", "0.59460866", "0.59044945", "0.5888816", "0.5880894", "0.58382314", "0.58344173", "0.5833595", "0.5814909", "0.58103395", "0.58005226", "0.5780524", "0.5774...
0.0
-1
Merges padding of ZeroPadding2D and Convolution2D | MaxPooling2D | AveragePooling2D layer
def WIl5(YKHO, pNZh: Graph) -> AzJI[Q1Kq, bool]: RLQG = False for yFav in [Ofph, BzBX, WN4z]: hHld = gjBJ(pNZh, [l2Dx, iQnE, yFav]) while len(hHld) > 0: kUBT = hHld[0] XOOk: l2Dx = kUBT[0] pHXX: uLKX[Ofph, BzBX, WN4z] = kUBT[2] AOVh = XOOk.paramete...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K2Dz(YKHO):\n yIp6 = U78l.Sequential(U78l.Conv2d(in_channels=3, out_channels=64, kernel_size=7, stride=2, padding=3, bias=False), U78l.BatchNorm2d(64), U78l.LeakyReLU(0.1, inplace=True), U78l.MaxPool2d(kernel_size=2, stride=2), U78l.Conv2d(64, 192, 3, padding=1, bias=False), U78l.BatchNorm2d(192), U78l.Leak...
[ "0.7022112", "0.69777626", "0.6659854", "0.65137196", "0.65080684", "0.64650005", "0.63808006", "0.626055", "0.62506133", "0.62506133", "0.62428194", "0.6233859", "0.62205845", "0.62169003", "0.6200956", "0.6194681", "0.6192606", "0.61797595", "0.6153535", "0.6136569", "0.610...
0.0
-1
Evaluates a given xpath expression against a given node and returns the first result or None if there are no results.
def n0j_(LihS, laNn): YFyD = LihS.xpath(laNn) if len(YFyD) > 0: return YFyD[0] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def laNn(ATUZ, fsgT, PCpl, WmM4=None):\n Ylbp = ATUZ.xpath(fsgT, namespaces=PCpl)\n if len(Ylbp) == 0:\n return WmM4\n else:\n return Ylbp[0]", "def laNn(ATUZ, fsgT, PCpl, WmM4=None):\n Ylbp = ATUZ.xpath(fsgT, namespaces=PCpl)\n if len(Ylbp) == 0:\n return WmM4\n else:\n ...
[ "0.692793", "0.692793", "0.6924378", "0.6770427", "0.67206484", "0.65070736", "0.6431222", "0.6343448", "0.62507474", "0.61280894", "0.60473865", "0.6046977", "0.60401464", "0.6009245", "0.59925634", "0.5989543", "0.594469", "0.5931862", "0.57995486", "0.57659215", "0.5748138...
0.6890114
3
Returns the ModelStat queryset for this Stat
def xjFZ(YKHO, _c1T=rIAI.now().date()): jwjR = YKHO._get_manager_kwargs(_c1T) try: Sjf9, _EYN = bs0N.objects.get_or_create(**jwjR) except bs0N.MultipleObjectsReturned: DumB = bs0N.objects.filter(**jwjR) Sjf9 = DumB.first() xFUr = DumB.exclude(pk=Sjf9.pk) for ZfUD in x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SR0I(Emd4):\n return Emd4.model._default_manager.all()", "def k66M(YKHO):\n return Ny6I.objects.all()", "def k66M(YKHO):\n return Cd4k.objects.filter(user=YKHO.request.user)", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def YrZb(YKHO):\n return gF3p", "def k66M(YKHO):\n CB...
[ "0.67512923", "0.66309273", "0.64449465", "0.63718694", "0.6307163", "0.62458825", "0.623093", "0.6118509", "0.60971016", "0.60894823", "0.6074114", "0.59311545", "0.589475", "0.5892084", "0.58806956", "0.5861497", "0.584629", "0.5831853", "0.5761274", "0.5739863", "0.5726331...
0.6794354
0
Euclidean distance between current pose and the goal.
def usGr(YKHO, finv): return PZyS(pow(finv.x - YKHO.pose.x, 2) + pow(finv.y - YKHO.pose.y, 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usGr(YKHO, finv):\n return PZyS(pow(finv.x - YKHO.pose.x, 2) + pow(finv.y - YKHO.pose.y, 2))", "def usGr(YKHO):\n return PZyS(pow(YKHO.goal_pose.x - YKHO.ground_truth_pose.x, 2) + pow(YKHO.goal_pose.y - YKHO.ground_truth_pose.y, 2))", "def usGr(YKHO):\n return PZyS(pow(YKHO.pose1.x - YKHO.pose2.x,...
[ "0.84976757", "0.8286828", "0.76960045", "0.73938185", "0.7165636", "0.6998838", "0.6989489", "0.6879274", "0.6778549", "0.6766484", "0.67339146", "0.67335176", "0.6725434", "0.6725434", "0.6725434", "0.6725434", "0.6725434", "0.6725434", "0.6725434", "0.67160606", "0.6687794...
0.8481381
1
Return a static 200 OK response.
def GMdN(): return oGir('ok', status=200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tk5Y():\n return oGir(\"It's alive!\", status=200)", "def jfs9(TBsA, m5r4):\n MOPg = {'Content-Length': len(TBsA), 'Content-Type': m5r4}\n geh0 = oGir(200, 'OK', body=TBsA, headers=MOPg)\n return geh0.return_response_string()", "def jfs9(TBsA=b'This is a minimal response', uFHL=b'text/plain'):\...
[ "0.71800315", "0.681691", "0.68165326", "0.67884004", "0.6744858", "0.6724145", "0.67228824", "0.6634929", "0.65743613", "0.65438306", "0.65379614", "0.6535778", "0.6526113", "0.65248907", "0.6511375", "0.65031135", "0.6484859", "0.64418674", "0.64399076", "0.6439768", "0.643...
0.74615145
0
We'd first load half of the dummy data for the given city. We'd then load the whole data set. We expect that the old data is fully replaced with the new one
def IsIF(YKHO): yIVm = YKHO.metadata_sofia hELY = dict(list(YKHO.places_sofia.items())[:len(YKHO.places_sofia) // 2]) n_Uf(places=hELY, metadata=yIVm) AIkT.run_all_tests_single_area_loaded(tester=YKHO, places=hELY, metadata=yIVm) n_Uf(places=YKHO.places_sofia, metadata=yIVm) AIkT.run_all_tests_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n if j5sA == 'chicago':\n pSQ5 = rLdf.read_csv('chicago.csv')\n elif j5sA == 'new york city':\n pSQ5 = rLdf.read_csv('new_york_city.csv')\n else:\n print('else is running')\n print(pSQ5.head())\n return pSQ5", "def UlWi(j5sA, x0eS, CjKC):\n print...
[ "0.6551829", "0.6503957", "0.64861834", "0.640927", "0.6382879", "0.63787067", "0.6366296", "0.6344441", "0.6331917", "0.6326113", "0.6321885", "0.6313767", "0.6303727", "0.6297733", "0.6266999", "0.6260142", "0.6258054", "0.62452614", "0.6239858", "0.6238182", "0.62272274", ...
0.0
-1
Loads masks from dataset.
def FEdX(YKHO, r8m5): U34r = YKHO.image_info[r8m5] x3Be = U34r['path'] H2v2 = U34r['height'] TVTK = U34r['width'] oEsP = Hy7s.path.join(x3Be, 'mag') C7sj = Hy7s.path.join(x3Be, 'tissue') y1wN = Hy7s.listdir(oEsP) usmo = Hy7s.listdir(C7sj) KndY = [] oGem = [] if y1wN: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FEdX(YKHO, r8m5):\n U34r = YKHO.image_info[r8m5]\n V0hI = SC2F.glob(U34r['path'].replace('images', 'masks').replace('.png', '*.png'))\n oGem = []\n WEJA = []\n for YxIR in V0hI:\n ZHfW = XC5k.imread(YxIR, XC5k.IMREAD_GRAYSCALE)\n oGem.append(ZHfW)\n if 'normal' in YxIR:\n ...
[ "0.7305298", "0.722336", "0.718072", "0.71522343", "0.71456295", "0.7088234", "0.7076364", "0.6956015", "0.69180125", "0.67707175", "0.6725268", "0.6724248", "0.66833884", "0.6676314", "0.66598105", "0.66520643", "0.6649231", "0.6624163", "0.661632", "0.6581018", "0.65769225"...
0.6725806
10
Splits up a DataFrame into train and test sets. ============
def N66D(YKHO, NI2E=0.2, ioaL=None): return bHtP(YKHO, test_size=NI2E, random_state=42, stratify=ioaL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHtP(jQ3Z, NI2E=0.3):\n zBu_ = int(jQ3Z.shape[0] * (1 - NI2E))\n NI2E = jQ3Z.shape[0] - zBu_\n EvQg = jQ3Z[:zBu_]\n QOe9 = jQ3Z[zBu_:]\n return (EvQg, QOe9)", "def Ulm3(bOBl):\n bOBl = bOBl.dropna()\n d6pt = 100\n XxFT = bOBl.iloc[:d6pt]\n t4zr = bOBl.iloc[d6pt:]\n return (XxFT,...
[ "0.82248056", "0.81863195", "0.81436044", "0.8073969", "0.78963536", "0.7892499", "0.78856504", "0.78234833", "0.77969587", "0.77424717", "0.7735196", "0.77239436", "0.7634888", "0.76220816", "0.7533184", "0.7509559", "0.74060285", "0.73831785", "0.7360377", "0.7296296", "0.7...
0.0
-1
Takes `outputs`, which are a set of values about to be returned from the current module. If `_qtensor_info` attributes do not already exist on any tensors in `outputs`, this function adds them, initializing the dtype to `torch.float`. This allows us to reason about module output dtypes even if the last op in the module...
def vEgF(YKHO, o4Jx: Any, K19k: List[int]) -> ImMB: if isinstance(o4Jx, ht2j.Tensor): YKHO._first_call_assign_qtensor_infos_to_mod_outputs_tensor(o4Jx, K19k) elif isinstance(o4Jx, tuple): ZE_z = [] for hlel in o4Jx: if isinstance(hlel, ht2j.Tensor): ZE_z.appen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G5y_(YKHO, o4Jx: Any) -> ImMB:\n if not YKHO.needs_dtype_transform_on_outputs:\n return o4Jx\n if isinstance(o4Jx, ht2j.Tensor):\n TxVH = YKHO.output_qtensor_infos[0]\n if YKHO.output_dtypes is not None:\n assert TxVH is not None\n iaaf = YKHO.output_dtypes[0]\n...
[ "0.7234004", "0.6778822", "0.6767061", "0.6478161", "0.64146495", "0.604019", "0.58449084", "0.5618533", "0.5605903", "0.5590267", "0.5581455", "0.55696774", "0.5568241", "0.5552041", "0.5516331", "0.5471985", "0.5444533", "0.54123664", "0.5408028", "0.5408028", "0.53826886",...
0.72056925
1
Takes `outputs` which are about to be returned from this module to the caller. If this module has restrictions on the dtypes of tensors it has to return, does the dtype conversion. Otherwise, does nothing.
def G5y_(YKHO, o4Jx: Any) -> ImMB: if not YKHO.needs_dtype_transform_on_outputs: return o4Jx if isinstance(o4Jx, ht2j.Tensor): TxVH = YKHO.output_qtensor_infos[0] if YKHO.output_dtypes is not None: assert TxVH is not None iaaf = YKHO.output_dtypes[0] i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dpiw(YKHO, o4Jx: Any) -> ImMB:\n o4Jx = YKHO._maybe_mod_outputs_dtype_transform(o4Jx)\n return o4Jx", "def tCTM(YKHO):\n YKHO.needs_dtype_transform_on_outputs = False\n if not len(YKHO.output_qtensor_infos):\n return\n TxVH = YKHO.output_qtensor_infos[0]\n if YKHO.output_dtypes is no...
[ "0.7660219", "0.7137217", "0.6946627", "0.64697677", "0.6188353", "0.6143662", "0.59642446", "0.5778277", "0.5743891", "0.5681654", "0.56685454", "0.5659667", "0.56383216", "0.56383216", "0.56159514", "0.5574802", "0.5568728", "0.5468316", "0.54544806", "0.544662", "0.544662"...
0.8121109
0
Yeilds files matching pattern found in root and its subdirectories. An exception is thrown if root doesn't exist.
def TkCZ(mXDZ, tk5Y=Hy7s.curdir): for pmON, bGrB, RRlC in Hy7s.walk(Hy7s.path.abspath(tk5Y)): for Ux0P in jlVJ.filter(RRlC, mXDZ): yield Hy7s.path.join(pmON, Ux0P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OZd6(tk5Y, mXDZ='*.py'):\n for tk5Y, iIh5, iumf in Hy7s.walk(tk5Y):\n for Ux0P in jlVJ.filter(iumf, mXDZ):\n yield Hy7s.path.join(tk5Y, Ux0P)", "def Botm(YKHO, mXDZ, mSqg):\n for pmON, AQSv, RRlC in Hy7s.walk(Hy7s.path.abspath(mSqg)):\n for Ux0P in jlVJ.filter(RRlC, mXDZ):\n ...
[ "0.67759204", "0.67616934", "0.6670386", "0.66505307", "0.6456412", "0.6372018", "0.6330972", "0.62085027", "0.6173305", "0.6150569", "0.61061627", "0.61045414", "0.6094112", "0.6089785", "0.6079915", "0.6041841", "0.6026217", "0.60221183", "0.60220826", "0.60140896", "0.5991...
0.67182815
2
Finds the desired object's parent, searching upward from the start_dir. Searches within start_dir and within all its parents looking for the desired directory or file, which may be given in one or more path components. Returns the first directory in which the top desired path component was found, or raises PathNotFound...
def x048(SPqu, *LPbT): qQXH = Hy7s.path.join(*LPbT) DR43 = '' T442 = SPqu zcvW = Hy7s.path.join(T442, qQXH) while not Hy7s.path.exists(zcvW): DR43 = T442 T442 = Hy7s.path.dirname(T442) if DR43 == T442: raise Q78K('Unable to find %s above %s' % (qQXH, SPqu)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qLYE(qGgV, XKL0, Iw6c=None):\n if Iw6c is None:\n Iw6c = Hy7s.path.exists\n for pmON in ojfc(XKL0):\n pan_ = Hy7s.path.join(pmON, qGgV)\n if Iw6c(pan_):\n return pan_\n return None", "def kCM1(SPqu, *LPbT):\n _AKB = x048(SPqu, *LPbT)\n return Hy7s.path.join(_AKB...
[ "0.68884987", "0.66576576", "0.65121746", "0.6431206", "0.6309778", "0.6242849", "0.622943", "0.62164813", "0.6186842", "0.61390775", "0.61100143", "0.609737", "0.60620207", "0.6036359", "0.60303724", "0.6028851", "0.60098743", "0.5971119", "0.5952902", "0.5945069", "0.591127...
0.7572469
0
Returns the executable command name, depending on the platform.
def mSMn(a9EH=None): if not a9EH: a9EH = HwRy.platform if a9EH.startswith('win'): return 'gclient.bat' else: return 'gclient'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Vgz(YKHO) -> str:\n ...", "def fZAz():\n Nh0T = GikI.get_value('APP_DIR')\n a9EH = GikI.platform()\n try:\n mdek = wkLh[a9EH]\n except KeyError:\n return None\n return Hy7s.path.join(Nh0T, mdek)", "def mmU3(YKHO) -> str:\n return HwRy.executable", "def wnCX(YGTQ):\n ...
[ "0.7504294", "0.7262533", "0.7131338", "0.7104467", "0.7004376", "0.6944966", "0.69395924", "0.6903498", "0.68582785", "0.6770532", "0.67492676", "0.6668505", "0.66588515", "0.664624", "0.66443825", "0.66322273", "0.66092163", "0.66012925", "0.65805984", "0.6578445", "0.65512...
0.65303254
25
Get current checkout's subdir, if checkout uses subdir layout.
def v1Bf(): AeXe = Hy7s.getenv('INFRA_BUILDBOT_SLAVE_ACTIVE_SUBDIR') if AeXe is not None: return AeXe or None ObT1 = Hy7s.path.dirname(P8LW) Cvdz = Hy7s.path.dirname(ObT1) tTqh = Hy7s.path.dirname(Cvdz) if Hy7s.path.basename(tTqh) == 'build' and Hy7s.path.basename(Cvdz) == 'nested': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mSwx(YKHO):\n _AKB = Hy7s.path.dirname(YKHO.dirn)\n if YKHO.is_subdir:\n _AKB = Hy7s.path.basename(_AKB)\n elif YKHO.platform is not None and _AKB.endswith(YKHO.platform):\n _AKB = _AKB[:-len(YKHO.platform)].rstrip(Hy7s.sep)\n if YKHO.year is not None and _AKB.endswith(str(lO87)):...
[ "0.63436604", "0.62213314", "0.62213314", "0.62213314", "0.62213314", "0.6199754", "0.61840326", "0.6176942", "0.61609375", "0.6109741", "0.6093772", "0.60682404", "0.6066987", "0.6064445", "0.6031232", "0.5986928", "0.59745586", "0.5973641", "0.59667623", "0.59578377", "0.59...
0.6396528
0
Given a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file. `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result of os.environ.get("PATH"), or can be overridden with a custom search path.
def AVwH(HCmI, Tuqy=Hy7s.F_OK | Hy7s.X_OK, pmON=None): def LZLW(FYKK, Tuqy): return Hy7s.path.exists(FYKK) and Hy7s.access(FYKK, Tuqy) and (not Hy7s.path.isdir(FYKK)) if LZLW(HCmI, Tuqy): return HCmI pmON = (pmON or Hy7s.environ.get('PATH', Hy7s.defpath)).split(Hy7s.pathsep) if HwRy.pla...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nygx(HCmI, Tuqy=Hy7s.F_OK | Hy7s.X_OK, pmON=None):\n\n def LZLW(FYKK, Tuqy):\n return Hy7s.path.exists(FYKK) and Hy7s.access(FYKK, Tuqy) and (not Hy7s.path.isdir(FYKK))\n if Hy7s.path.dirname(HCmI):\n if LZLW(HCmI, Tuqy):\n return HCmI\n return None\n if pmON is None:\n...
[ "0.7710544", "0.7460606", "0.74535376", "0.69431406", "0.6540076", "0.63951135", "0.60807884", "0.5903502", "0.58789366", "0.58784086", "0.57512003", "0.5732224", "0.5709676", "0.5672236", "0.5576158", "0.55755967", "0.55527914", "0.54989916", "0.545132", "0.54457504", "0.542...
0.7276463
3
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)", "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\...
[ "0.8330198", "0.8286244", "0.8239507", "0.8231228", "0.82214344", "0.8187793", "0.81863457", "0.81766933", "0.8172925", "0.81715053", "0.81679446", "0.81658614", "0.81652", "0.816366", "0.816366", "0.816366", "0.816366", "0.816366", "0.816366", "0.816366", "0.816366", "0.81...
0.7877335
64
Splits a given dataset into train and validation
def FJfc(__n6, hUPF, MuFn, Ep8u, I7Gy, igb0=0, hXNa=True, wMl7=False): ZhuC = epAf.floor(hUPF * MuFn) D0Gl, Ycu5 = Npgh.utils.data.random_split(__n6, [hUPF - ZhuC, ZhuC], generator=Npgh.Generator().manual_seed(igb0)) if wMl7: Ycu5 = Cck9(Ycu5) hLYa = [D0Gl, Ycu5] NQyq = [] for oxOY in hL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHtP(nPrm, D4hj=0.3):\n lpha = len(nPrm) * (1 - D4hj)\n lpha = int(lpha)\n EvQg = nPrm[:lpha]\n xzCw = nPrm[lpha:]\n return (EvQg, xzCw)", "def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB, bGrB = bHtP(YKHO.data, YKHO.data, test_size=0.2)\n YKHO.valid, YKHO.test, bGrB, bGrB = bHtP(YKHO.val...
[ "0.8286266", "0.8269386", "0.8189092", "0.7935197", "0.7926775", "0.78991723", "0.7886786", "0.78474474", "0.7706437", "0.7706437", "0.7706437", "0.769847", "0.76706713", "0.76536226", "0.7642111", "0.76167077", "0.7610265", "0.76087016", "0.7603794", "0.76035", "0.7575361", ...
0.0
-1
Converts a field to categorical type in order to save memory space and speed up basis expansion.
def PKz0(bOBl, tI5P): if WjKF(bOBl, tI5P): bOBl[tI5P] = bOBl[tI5P].astype('category') return bOBl else: raise TypeError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z1Is(YKHO, Yp5t):\n YKHO._data[Yp5t] = rLdf.Categorical(YKHO._data[Yp5t])", "def KAtb(jQ3Z, Jyyj):\n return jQ3Z[Jyyj].dtype.name == 'category'", "def kZeG(hIws):\n return hIws", "def XVjN(YKHO):\n ACia = []\n for fvDH in YKHO.cat_cols:\n if fvDH in YKHO.train_df and fvDH + str('Enc...
[ "0.72345245", "0.7223713", "0.7104019", "0.6217048", "0.6093363", "0.59935856", "0.5939084", "0.57817966", "0.5755735", "0.5750588", "0.56978595", "0.5677694", "0.56638664", "0.565698", "0.5643744", "0.5641929", "0.5622583", "0.56026095", "0.56026095", "0.55933833", "0.558536...
0.7618379
0
Take a list of Attr names and return a dict of those attributes values with names as keys
def nACd(YKHO, wCK_): Csk6 = {} for ZfUD in wCK_: if YKHO.__dict__.has_key(ZfUD): Csk6[ZfUD] = YKHO.__dict__[ZfUD] return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bjmO(YKHO, o8Kj):\n zyX_ = {}\n for J2gq in o8Kj:\n zyX_[J2gq[0]] = J2gq[1]\n return zyX_", "def uGTm(o8Kj):\n if o8Kj.getLength() == 0:\n return {}\n Nws4 = {}\n for mWFP in o8Kj.getNames():\n Nws4[mWFP] = o8Kj.getValue(mWFP)\n return Nws4", "def UTui(YKHO, o8Kj):...
[ "0.74385136", "0.73659223", "0.73240274", "0.7025269", "0.69200003", "0.6716692", "0.66161066", "0.66107565", "0.6585543", "0.65166026", "0.6450366", "0.644488", "0.636546", "0.63389707", "0.62444085", "0.621897", "0.6197052", "0.61782056", "0.615368", "0.61457676", "0.613419...
0.72084755
3
Take the dict given and find the next available ID
def nsBG(YKHO, Csk6): try: TrWY = Csk6.keys() TrWY = aese.sortStringList(TrWY) V_pJ = int(TrWY[-1]) iZa_ = str(V_pJ + 1) for YRbF in range(1, int(iZa_)): if str(YRbF) not in TrWY: return str(YRbF) return iZa_ except: return '1'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eBry(zIV6):\n return zIV6[next(iter(zIV6))]", "def QQLV():\n w2B8 = N2kr()\n N1p7 = w2B8.execute('SELECT matchId FROM match WHERE isSearched = 0 LIMIT 1')\n dfOq = N1p7.fetchone()\n w2B8.close()\n if dfOq is None:\n print('no more matchId to be searched')\n return None\n el...
[ "0.6483836", "0.6410202", "0.6378688", "0.6368327", "0.63469493", "0.61641645", "0.60935175", "0.60431", "0.60092604", "0.60064125", "0.6004894", "0.6004418", "0.59482497", "0.5948075", "0.59113324", "0.5890131", "0.5867724", "0.58641475", "0.58446217", "0.5829393", "0.579382...
0.71750766
0
Make each sample have a mean of zero by subtracting mean along the feature axis.
def VObX(WKvO): return WKvO - oyIN.mean(WKvO, axis=1).reshape((WKvO.shape[0], 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PIV7(WKvO, ql1R):\n yGTL = oyIN.mean(WKvO, axis=0)\n return (WKvO - yGTL, ql1R - yGTL)", "def socU(YKHO):\n return YKHO.data - YKHO.mean", "def A2Q7(WKvO):\n return oyIN.zeros(WKvO.shape[0])", "def cZKd(WKvO: Tensor) -> llWB:\n return ht2j.mean(WKvO, dim=0)", "def ydI2(EcVT):\n M1Jx =...
[ "0.74405015", "0.680625", "0.67393494", "0.6726073", "0.66002244", "0.65840334", "0.65359443", "0.64321744", "0.63846374", "0.6363144", "0.63400084", "0.63195056", "0.62589437", "0.6194102", "0.61927855", "0.61706245", "0.6116202", "0.6110677", "0.6110677", "0.6110677", "0.61...
0.7610733
0
Make each feature have a mean of zero by subtracting mean along sample axis. Using training statistics to normalize test data.
def PIV7(WKvO, ql1R): yGTL = oyIN.mean(WKvO, axis=0) return (WKvO - yGTL, ql1R - yGTL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ydI2(EcVT):\n M1Jx = EcVT.std(axis=0)\n M1Jx = oyIN.where(M1Jx == 0, 1, M1Jx)\n DG22 = (EcVT - EcVT.mean(axis=0)) / M1Jx\n return DG22", "def VObX(WKvO):\n return WKvO - oyIN.mean(WKvO, axis=1).reshape((WKvO.shape[0], 1))", "def zAxo(EvQg, QOe9):\n ywwl, XP5J = oyIN.shape(EvQg)\n eRPr ...
[ "0.7077883", "0.7011696", "0.69073236", "0.68003464", "0.67613477", "0.6718349", "0.6636497", "0.66312796", "0.6482037", "0.64746094", "0.6443299", "0.6437047", "0.63987243", "0.6361115", "0.63539654", "0.6342208", "0.6302504", "0.6262094", "0.6226308", "0.61833024", "0.61833...
0.7740042
0
Initialize a Ball object mass the mass of ball radius the radius of ball position the position vector of ball velocity the velocity vector of ball
def FIMM(YKHO, bMbF, r1VO, dQgj, p8Jz): YKHO.mass = bMbF YKHO.radius = r1VO YKHO.position = dQgj YKHO.velocity = p8Jz print(YKHO.velocity) YKHO.vafter = oyIN.copy(p8Jz) YKHO.delete = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, aPzV, coMm, hgiy, AA86, xVuK):\n YKHO.posn_x = aPzV\n YKHO.posn_y = coMm\n YKHO.velocity_x = hgiy\n YKHO.velocity_y = 100.0\n YKHO.color = xVuK\n YKHO.ball_width = 20.0\n YKHO.ball_height = 20.0\n YKHO.coef_restitution = 0.9", "def FIMM(YKHO, bMbF, r1VO, dQgj, p8Jz):\n Y...
[ "0.7672465", "0.7261102", "0.71749353", "0.70791095", "0.70615464", "0.70206445", "0.6979953", "0.69783694", "0.6917194", "0.67497057", "0.6733276", "0.67286646", "0.67049617", "0.6673413", "0.6598071", "0.65521103", "0.65495366", "0.65427196", "0.65285766", "0.6517548", "0.6...
0.6932775
8
Reward of agent i as observed in o, given all agents behave according to X.
def IXa1(YKHO, EcVT, VpOw=None, rD_I=None): VpOw = YKHO.obtain_Bios(EcVT) if VpOw is None else VpOw rD_I = YKHO.obtain_Xisa(EcVT) if rD_I is None else rD_I YRbF = 0 KCHu = 1 A95K = 2 z1Rg = 3 u2dp = list(range(4, 4 + YKHO.N)) Q3qN = list(WhY1.chain(*zip(rD_I, [[KCHu, u2dp[jzdc]] for jzdc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xaq_(YKHO, YRbF, vwlo, vOGg=1):\n for r845, jzdc in enumerate(YKHO.agents):\n if jzdc.index == YRbF or jzdc.index == 0:\n vwlo[r845] += vOGg\n if YKHO.zero_sum:\n if jzdc.index != YRbF or jzdc.index == 0:\n vwlo[r845] -= vOGg", "def YPaw(YKHO, XeOP):\n ...
[ "0.68329924", "0.67081255", "0.6350624", "0.6335578", "0.63130635", "0.6304448", "0.6303894", "0.62661266", "0.6243979", "0.6240213", "0.6208016", "0.61624104", "0.6147371", "0.61459017", "0.6138077", "0.61248505", "0.6090167", "0.6090167", "0.6090167", "0.6090167", "0.609016...
0.0
-1
Obtain stationary distribution for X
def FUyU(YKHO, cgR2, yJiH=1e-10, A__b=True, PJWX=True): _2i9, bQ0q = pEuX.eig(cgR2, right=False, left=True) _2i9 = _2i9.real bQ0q = bQ0q.real ZHfW = abs(_2i9 - 1) < yJiH o6PC = False if A__b and oyIN.sum(ZHfW) != 1: Zihr = 2 * (oyIN.sum(ZHfW) < 1) - 1 while oyIN.sum(ZHfW) != 1 an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Twvm(YKHO):\n return YKHO.mc.stationary_distributions", "def TeT8(YKHO):\n V6IE = YKHO.markov_transition()\n ywwl = len(V6IE)\n pdhd = oyIN.identity(ywwl)\n k0lF = V6IE.T - pdhd\n mM0K = lsVp(k0lF)\n mM0K = mM0K / sum(mM0K)\n mM0K = [float(ZfUD) for ZfUD in mM0K]\n return mM0K", ...
[ "0.73740333", "0.6996491", "0.6314904", "0.6266839", "0.61767805", "0.6117579", "0.61107326", "0.6062917", "0.6035157", "0.5994648", "0.59207827", "0.5904452", "0.58859724", "0.58756155", "0.58692527", "0.585742", "0.585659", "0.58244133", "0.5823404", "0.57891405", "0.577842...
0.0
-1
Given a document (represented as a string), return a list of all of the words in that document, in order. Process document by coverting all words to lowercase, and removing any punctuation or English stopwords.
def wr3U(C13M): wUfe = [] wv6b = vIwR.punctuation vlVk = Dhdw.corpus.stopwords.words('english') Ne8x = Dhdw.word_tokenize(C13M) for ZfUD in Ne8x: if ZfUD in wv6b or ZfUD in vlVk or len(ZfUD) < 4: continue wUfe.append(ZfUD.lower()) return wUfe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(C13M):\n Iras = [GIN8.lower() for GIN8 in Dhdw.word_tokenize(C13M) if GIN8.isalpha()]\n Iras = [GIN8.lower() for GIN8 in Iras]\n dsP0 = []\n for GIN8 in Iras:\n if GIN8 not in vIwR.punctuation and GIN8 not in Dhdw.corpus.stopwords.words('english'):\n dsP0.append(GIN8.lower())...
[ "0.7946411", "0.79221493", "0.7899376", "0.77563936", "0.7736424", "0.77264714", "0.76672745", "0.73873055", "0.72902703", "0.7227008", "0.7074942", "0.7042964", "0.70238566", "0.7017628", "0.7017628", "0.699229", "0.6973201", "0.6968546", "0.6966155", "0.69499093", "0.694576...
0.7340858
8
Returns a KafkaClient based off of the kafka_hosts and kafka_port configs set in the active runtime.
def kbDt(vjMt=20, FRcK=1): rEFZ = Qvn0.get_active_config('kafka_hosts').values() vJwV = Qvn0.get_active_config('kafka_port') assert len(rEFZ) > 0, 'Missing required configuration: kafka_hosts' BGQa = ','.join(map(lambda MKlR: MKlR + ':{0},'.format(vJwV), rEFZ)).rstrip(',') if not UIRE(rEFZ[0], vJwV,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Obpg(YKHO, KcEq, bIwZ):\n iAHe = (XRlH(KcEq), bIwZ)\n if iAHe not in YKHO.clients:\n RKD7.debug('%r: creating client for %s:%d', YKHO, KcEq, bIwZ)\n YKHO.clients[iAHe] = Zg2H(YKHO.reactor, KcEq, bIwZ, YKHO.clientId, subscriber=YKHO._update_broker_state)\n return YKHO.clients[iAHe]", "d...
[ "0.66664684", "0.6258427", "0.6240911", "0.6115197", "0.60555416", "0.5923222", "0.5914974", "0.5900213", "0.5867888", "0.57806224", "0.5724228", "0.56831545", "0.5682155", "0.5627294", "0.56111276", "0.55973774", "0.5585405", "0.5579921", "0.5470888", "0.54186803", "0.539805...
0.7897692
0
Reset this calibrator for reuse. The calibrator will clear any dynamic ranges cached from previous calibration runs, and will attempt to rewind the data loader (note that generators cannot be rewound). Typically, this is only required if the same calibrator is used for multiple different networks.
def SiRx(YKHO): YKHO.data_loader_iter = iter(YKHO.data_loader) YKHO.num_batches = 0 YKHO.cache_contents = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.scaler = None\n YKHO.isFitted = False\n YKHO.__create_scaler()", "def SiRx(YKHO):\n YKHO.source_data = YKHO.get_dict_from_range(None, None)\n YKHO.selection_bounds = None\n YKHO.selection = []\n for Z9rn in YKHO.callbacks['reset_data']:\n Z9rn()\n if YKHO.con...
[ "0.70852745", "0.6861143", "0.67036825", "0.6627967", "0.6627967", "0.66118205", "0.65607685", "0.65275306", "0.64724976", "0.6468237", "0.6442534", "0.6436194", "0.6433947", "0.64259875", "0.6397934", "0.63935053", "0.6386685", "0.6386685", "0.6386685", "0.6386685", "0.63866...
0.7576188
0
Compute the values of the formal ECDF generated from `data` at points `x`. I.e., if F is the ECDF, return F(x).
def TH2x(WKvO, nPrm): LVAh = oyIN.arange(len(nPrm) + 1) / len(nPrm) return LVAh[oyIN.searchsorted(oyIN.sort(nPrm), WKvO, side='right')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zt0j(nPrm):\n exwG = len(nPrm)\n WKvO = oyIN.sort(nPrm)\n LVAh = oyIN.arange(1, len(nPrm) + 1) / exwG\n return (WKvO, LVAh)", "def Zt0j(nPrm):\n exwG = len(nPrm)\n WKvO = oyIN.sort(nPrm)\n LVAh = oyIN.arange(1, len(nPrm) + 1) / exwG\n return (WKvO, LVAh)", "def Zt0j(nPrm):\n exwG...
[ "0.74496126", "0.74496126", "0.7419554", "0.7411833", "0.7411163", "0.74062026", "0.74062026", "0.73986036", "0.7385595", "0.7385595", "0.7374215", "0.7373502", "0.7358343", "0.73137045", "0.67853445", "0.67297626", "0.6715188", "0.66331124", "0.64757735", "0.64067775", "0.62...
0.673349
15
Determine if all entries in two arrays are close to each other.
def SBMJ(WKvO, LVAh, LL2J=1e-07, rU28=1e-14): for jzdc, Fg_i in zip(WKvO, LVAh): if oyIN.abs(jzdc - Fg_i) > rU28 + LL2J * oyIN.abs(Fg_i): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gdax(g6bN, qwnq):\n for vvyW, Mztb in zip(sorted(g6bN), sorted(qwnq)):\n if vvyW >= Mztb:\n return False\n return True", "def aT1D(o4D3, ajwV):\n if abs(o4D3 - ajwV) <= mNmR:\n return True\n return False", "def KRqq(jzdc, Fg_i, EdL8=0.0001, hy6N=0.0001, _0qL=True):\n ...
[ "0.72856426", "0.7004255", "0.69977117", "0.6966303", "0.68846136", "0.67174697", "0.6690083", "0.6689063", "0.6662894", "0.66489667", "0.66488373", "0.6634391", "0.66275704", "0.6593512", "0.65904367", "0.65818846", "0.65675235", "0.65675235", "0.65658337", "0.65460753", "0....
0.689851
4
returns a view to record array theta which behaves like a (N,d) float array
def liki(q7In): Ty9i = q7In.view(oyIN.float) ywwl = q7In.shape[0] Ty9i.shape = (ywwl, -1) return Ty9i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uzII(YKHO, yDqo=None):\n q7In, rVnq = (float(YKHO.params[0]), float(YKHO.params[1]))\n YhSR = epAf.cos(q7In / 2)\n YUNn = epAf.sin(q7In / 2)\n rjHn = kLQb(-1j * rVnq)\n EFbp = kLQb(1j * rVnq)\n return XTiz.array([[YhSR, -1j * rjHn * YUNn], [-1j * EFbp * YUNn, YhSR]], dtype=yDqo)", "def dVgL...
[ "0.6559363", "0.63110006", "0.6234961", "0.60487247", "0.60072535", "0.59213066", "0.58990246", "0.5865741", "0.5822473", "0.5756527", "0.57273597", "0.5722455", "0.5718258", "0.57057023", "0.570516", "0.5700155", "0.56831706", "0.5662109", "0.55988514", "0.5593993", "0.55616...
0.6458964
1
Displays the homepage with forms for current or historical data.
def kZiy(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html', form=None)", "def kZiy():\n return TvZl('index.html', date=Csk6, mood=uakN, header_color=qfpW, day=CjKC, week=Vzk6, month=x0eS, year=lO87)", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", "def kZiy():\n return TvZl('home....
[ "0.7288106", "0.7038824", "0.70268315", "0.70189595", "0.7011207", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69257265", "0.6920755", "0.6914717", "0.6891607", "0.6880401", "0....
0.0
-1
Displays the homepage with forms for current or historical data.
def JcHN(): dJUK = ['Medical Document 1', 'Medical Document 2', 'Medical Document 3', 'Medical Document 4', 'Medical Document 5', 'Medical Document 6'] aKtw = ['This is Medical Document 1', 'This is Medical Document 2', 'This is Medical Document 3', 'This is Medical Document 4', 'This is Medical Document 5', 'T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html', form=None)", "def kZiy():\n return TvZl('index.html', date=Csk6, mood=uakN, header_color=qfpW, day=CjKC, week=Vzk6, month=x0eS, year=lO87)", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", "def kZiy():\n return TvZl('home....
[ "0.7288106", "0.7038824", "0.70268315", "0.70189595", "0.7011207", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69343853", "0.69257265", "0.6920755", "0.6914717", "0.6891607", "0.6880401", "0....
0.0
-1
Displays the homepage with forms for current or historical data.
def bySB(): return TvZl('features.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html', form=None)", "def kZiy():\n return TvZl('index.html', date=Csk6, mood=uakN, header_color=qfpW, day=CjKC, week=Vzk6, month=x0eS, year=lO87)", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", "def kZiy():\n return TvZl('home....
[ "0.7288882", "0.703977", "0.70289063", "0.7020779", "0.7013105", "0.6936235", "0.6936235", "0.6936235", "0.6936235", "0.6936235", "0.6936235", "0.6936235", "0.6936235", "0.6936235", "0.6936235", "0.6927369", "0.6922565", "0.69154614", "0.6892315", "0.6881946", "0.6870623", ...
0.0
-1
given a sklearn confusion matrix (cm), make a nice plot Arguments
def LwSz(Bcwd, gXgy, HOVt, leAC='Confusion matrix', iMGt=None, NkkI=False): vjyh = oyIN.trace(Bcwd) / oyIN.sum(Bcwd).astype('float') YBwF = 1 - vjyh if iMGt is None: iMGt = QrM1.get_cmap('Blues') LZpg = QrM1.figure(figsize=(8, 6)) QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.colorbar()\n wIWT = oyIN.arange(len(tGDF))\n QrM1.xticks(wIWT, tGDF, rotation=45)\n QrM1.yticks(wIWT, tGDF)\n for YRbF, r845 ...
[ "0.7998953", "0.79943913", "0.7946874", "0.79344404", "0.79131955", "0.7896219", "0.78781104", "0.78595", "0.78595", "0.78530246", "0.7848679", "0.78483564", "0.78388304", "0.7833984", "0.7827247", "0.7823944", "0.78033894", "0.7800449", "0.7780714", "0.77779824", "0.77747816...
0.0
-1
Return the state attributes of the device.
def TzCU(YKHO) -> dict[str, ImMB]: return {QVu8: YKHO.coordinator.data.now.date, sERv: YKHO.entity_description.key, CLTz: YKHO.coordinator.data.site.id, iIAj: YKHO.coordinator.data.site.name}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO)...
[ "0.92744374", "0.92059016", "0.9151105", "0.9151105", "0.9149194", "0.9149194", "0.9149194", "0.9149194", "0.9149194", "0.9149194", "0.9149194", "0.9149194", "0.9149194", "0.9149194", "0.9149194", "0.9149194", "0.9149194", "0.91486025", "0.91486025", "0.9138181", "0.911002", ...
0.0
-1
Make a copy of self.__dict__ containing all the data we need.
def TEc0(YKHO): return YKHO.__dict__.copy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzJk(YKHO):\n Csk6 = dict()\n Csk6.update(YKHO.items())\n return Csk6", "def NMoC(YKHO) -> dict:\n return i3ak(YKHO.__dict__)", "def k8jS(YKHO) -> dict:\n Eepq = YKHO.__dict__.copy()\n del Eepq['adata']\n del Eepq['vadata']\n return Eepq", "def FzJk(YKHO):\n Emd4 = YKHO.__class...
[ "0.7480182", "0.73705435", "0.72972506", "0.7257804", "0.72359824", "0.7218769", "0.7200764", "0.71798927", "0.71011966", "0.708534", "0.7001143", "0.7001143", "0.7001143", "0.7001143", "0.7001143", "0.7001143", "0.7001143", "0.7001143", "0.7001143", "0.7001143", "0.6955425",...
0.0
-1
Loads a file into a dataframe.
def Eyt6(YKHO, qaEx: str) -> rLdf.DataFrame: return rLdf.read_csv(qaEx, sep='\t')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JOY1(Ux0P):\n jQ3Z = rLdf.read_csv(Ux0P)\n return jQ3Z", "def daic(Ux0P):\n pmON = Hy7s.path.join('..', 'data', Ux0P)\n f4IJ = rLdf.read_csv(pmON)\n return f4IJ", "def tyeH(YKHO) -> rLdf.DataFrame:\n if Hy7s.path.exists(YKHO.file_name):\n jQ3Z = rLdf.read_csv(YKHO.file_name, index_...
[ "0.76687145", "0.7653037", "0.76111704", "0.7507581", "0.7441309", "0.738278", "0.73757744", "0.73757744", "0.73757744", "0.7349036", "0.733366", "0.7327498", "0.7265091", "0.7261275", "0.7255459", "0.7242784", "0.7239481", "0.7223496", "0.71594656", "0.71554536", "0.71416515...
0.8056603
0
Get the xArm sn
def y46l(YKHO): return YKHO._arm.get_robot_sn()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cyXC(YKHO):\n return YKHO.spavg.getSN()", "def somg(YKHO, KBgZ, PObu, QpfX=None):\n if QpfX is None:\n QpfX = {}\n QRFO = YKHO.pool.get('mrp.production').browse(KBgZ, PObu, QpfX.get('active_id', False), context=QpfX)\n gAeH = QRFO.serialno\n if not gAeH:\n gAeH = YKHO.pool.get('i...
[ "0.59955907", "0.5897949", "0.58873993", "0.5851898", "0.5732977", "0.5709128", "0.56892914", "0.56664675", "0.5595404", "0.5577645", "0.55438673", "0.5537128", "0.5499664", "0.5441282", "0.5428752", "0.54274464", "0.54167736", "0.53755075", "0.5365413", "0.5365413", "0.53272...
0.6770372
0
Get the reported torque or electric current
def Gv1B(YKHO): return YKHO._arm.get_report_tau_or_i()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jvSB(YKHO) -> float:\n return YKHO._electric_current", "def R4Lq(YKHO):\n return YKHO.x", "def R4Lq(YKHO):\n return YKHO.node.sdo[8732].phys", "def lxXc(YKHO):\n if YKHO.clamp_mode == 'ic':\n return YKHO._meta['holding_current']\n else:\n return YKHO._baseline_value()", "de...
[ "0.6915121", "0.63950765", "0.63919914", "0.63905597", "0.6281592", "0.62534684", "0.6244732", "0.61967987", "0.6163203", "0.60896194", "0.60650295", "0.6016116", "0.6004637", "0.5953467", "0.59473234", "0.59246176", "0.591543", "0.5905062", "0.5902845", "0.587249", "0.586963...
0.563886
45
Return timestamp as string
def YKrM(wEf2): if isinstance(wEf2, qcWV): return wEf2.strftime(GGme)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ItX3():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S')", "def E3oo():\n return qcWV.now().strftime('%Y%m%dT%H%M%S')", "def X2x9():\n return str(int(ITS7.time()))", "def pqi0():\n import time\n return str(time.strftime('%a %d %b %Y %I:%M:%S %p'))", "def E3oo():\n return qcWV.datetime.now(...
[ "0.84595764", "0.8452315", "0.834696", "0.83181596", "0.82687974", "0.8199908", "0.81917363", "0.8177214", "0.81734216", "0.81527543", "0.81527543", "0.806251", "0.8028516", "0.80272096", "0.8003765", "0.79967266", "0.79472953", "0.7929054", "0.79101396", "0.7907151", "0.7907...
0.0
-1
Return good's price based on type of deal
def CWwf(YKHO): if YKHO.deal == JzBp: return YKHO.new_price elif YKHO.deal == Nmwh: return YKHO.max_price else: return YKHO.price
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VDS9(YKHO):\n return YKHO.create_random_decimal(min=1, max=100000)", "def QzNj(YKHO, hI0L):\n pass", "def u3T3(YKHO):\n return YKHO.day * YKHO.price", "def xwjy(Z9JV):\n hI0L = Z9JV.find('td', id='priceblock_dealprice', class_='a-color-price a-size-medium')\n hI0L = hI0L.text\n frMv = h...
[ "0.6644808", "0.65682167", "0.6532625", "0.64710706", "0.6455097", "0.63737863", "0.6288195", "0.62673044", "0.6265837", "0.62357223", "0.62357223", "0.62309647", "0.6229608", "0.61884034", "0.6179516", "0.6103663", "0.6090371", "0.60744655", "0.607241", "0.6064521", "0.60645...
0.799945
0
Test update returns entry two.
def fije(fiHr, xlyK): from .views.default import update C3ST = RAUw(title=nYrn[0]['title'], body=nYrn[0]['body'], creation_date=nYrn[0]['creation_date']) xlyK.add(C3ST) fiHr.matchdict['id'] = 1 Aofo = update(fiHr) wqi2 = Aofo['post'] assert wqi2.title == nYrn[0]['title'] assert wqi2.body...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qRhm(YKHO):\n pass", "def Tbie(YKHO):\n pass", "def EVNd():\n caVy = dP1Q(Cjes)\n n5sN: dict = eqZ3.update_object_in_db(caVy, 'some_uid', LDlF)\n i6Pa: dict = eqZ3.update_object_in_db(caVy, 'some_uid', LDlF)\n assert n5sN == PkL4 == i6Pa", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):...
[ "0.78487426", "0.7705983", "0.7644137", "0.7604735", "0.7604735", "0.7604735", "0.7475997", "0.7340763", "0.7201492", "0.7161953", "0.7153125", "0.7138606", "0.70288074", "0.6959076", "0.69444627", "0.68858033", "0.6791265", "0.6790361", "0.6768783", "0.6742385", "0.673082", ...
0.7172413
9
Test update returns entry two.
def _xjK(fiHr, xlyK): from .views.default import update C3ST = RAUw(title=nYrn[1]['title'], body=nYrn[1]['body'], creation_date=nYrn[1]['creation_date']) xlyK.add(C3ST) fiHr.matchdict['id'] = 1 Aofo = update(fiHr) wqi2 = Aofo['post'] assert wqi2.title == nYrn[1]['title'] assert wqi2.body...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qRhm(YKHO):\n pass", "def Tbie(YKHO):\n pass", "def EVNd():\n caVy = dP1Q(Cjes)\n n5sN: dict = eqZ3.update_object_in_db(caVy, 'some_uid', LDlF)\n i6Pa: dict = eqZ3.update_object_in_db(caVy, 'some_uid', LDlF)\n assert n5sN == PkL4 == i6Pa", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):...
[ "0.7849215", "0.77072555", "0.7642399", "0.76056343", "0.76056343", "0.76056343", "0.73415804", "0.72023034", "0.717432", "0.71624506", "0.71534634", "0.71395636", "0.70302844", "0.695992", "0.69459033", "0.6887193", "0.67918575", "0.6791425", "0.67702633", "0.67445785", "0.6...
0.7477039
6
Create an instance of webtests TestApp for testing routes.
def vY7J(): from webtest import TestApp from learning_journal import main P4t4 = main({}, **{'sqlalchemy.url': 'postgres:///amosboldor'}) vY7J = TestApp(P4t4) f57V = P4t4.registry['dbsession_factory'] eHpk = f57V().bind i_Aq.metadata.drop_all(bind=eHpk) i_Aq.metadata.create_all(bind=eHpk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vY7J():\n from space_rocks import main\n P4t4 = main({})\n from webtest import TestApp\n return TestApp(P4t4)", "def g5pL():\n P4t4 = jA2G.YumWeb(__name__)\n assert P4t4.name == 'web_tests'", "def LUif(zmu8=None):\n P4t4 = L2w0(__name__)\n from P4t4 import common\n P4t4.register_...
[ "0.78882056", "0.75199705", "0.7329518", "0.7145451", "0.71350235", "0.7101695", "0.7101695", "0.7101695", "0.7092823", "0.708616", "0.7057276", "0.7006798", "0.69613785", "0.695518", "0.6902935", "0.6882514", "0.6873027", "0.687293", "0.6869679", "0.68674725", "0.6840979", ...
0.6448393
53
The home page has all html elements from index template.
def GMXh(vY7J): geh0 = vY7J.get('/', status=200) _R2e = geh0.html assert len(_R2e.find_all('main')) == 1 assert len(_R2e.find_all('ul')) == 3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(YKHO):\n return TvZl('home_page/index.html', **locals())", "def d6pt():\n return TvZl('home.html')", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", "def d6pt():\n return TvZl('index.html', title='Home')", "def kZiy():\n return TvZl('index.html')"...
[ "0.86931694", "0.8557559", "0.852793", "0.8503373", "0.8468145", "0.8452784", "0.8437967", "0.8433049", "0.84280074", "0.8419608", "0.8419336", "0.8416375", "0.8410132", "0.8402134", "0.8402134", "0.8402134", "0.8402134", "0.839989", "0.8386757", "0.8386757", "0.8386757", "...
0.0
-1
A character escape aware string replace function s = string to perform replacement with old = substring to replace new = string to replace old escape = the escape character to be aware of
def sBd8(KCHu, gv2B, BdN0, IguF='\\'): K70M = [] if len(gv2B) == 0: return for YRbF, Z9rn in enumerate(KCHu): if gv2B[0] == Z9rn and KCHu[YRbF - 1] != IguF: K70M.extend(BdN0) else: K70M.append(Z9rn) return ''.join(K70M)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a_4o(KCHu):\n assert isinstance(KCHu, str), 'expected %s but got %s; value=%s' % (type(str), type(KCHu), KCHu)\n KCHu = KCHu.replace('\\\\', '\\\\\\\\')\n KCHu = KCHu.replace('\\n', '\\\\n')\n KCHu = KCHu.replace('\\t', '\\\\t')\n KCHu = KCHu.replace(',', '\\t')\n return KCHu", "def W50Z(KC...
[ "0.71093017", "0.6772709", "0.66766363", "0.6643009", "0.6548074", "0.6544306", "0.64055717", "0.63309604", "0.63257927", "0.6304961", "0.63039154", "0.6300425", "0.62840927", "0.6262964", "0.6226028", "0.62190616", "0.6218974", "0.62155104", "0.62065333", "0.61945885", "0.61...
0.8363607
0
Turn a list of Month objects into a list of verbose name months
def TtWp(NfIr): a6S9 = {'1': 'Jan', '2': 'Fev', '3': 'Mar', '4': 'Abr', '5': 'Mai', '6': 'Jun', '7': 'Jul', '8': 'Ago', '9': 'Set', '10': 'Out', '11': 'Nov', '12': 'Dez'} return [a6S9[x0eS.month_number] for x0eS in NfIr]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SviJ(YKHO, KBgZ, PObu, QpfX):\n X_bn = [(str(exwG), str(exwG)) for exwG in range(1, 13)]\n return X_bn", "def oy2m(YKHO):\n r8hN = []\n for m8z6 in YKHO:\n Csk6 = '-'.join(m8z6.Date.split('-')[:2])\n r8hN.append(Csk6)\n return list(sorted(set(r8hN), reverse=True))", "def jgEY(Y...
[ "0.656306", "0.64996326", "0.64751613", "0.6297216", "0.60888386", "0.60457885", "0.60351866", "0.5960159", "0.59091276", "0.5853055", "0.5753325", "0.57242507", "0.56981564", "0.56429726", "0.5590511", "0.5590191", "0.55769444", "0.55431104", "0.552884", "0.5495866", "0.5467...
0.8111117
0
Creates a plotly scattter chart using transactions of each month of a selected year.
def DsPw(vZGA): NfIr = qxb1(vZGA) X_bn = TtWp(NfIr) l2xY = Vh4U(NfIr, amount_type='expenses') RKjb = Vh4U(NfIr, amount_type='incomes') LZpg = iEax.Figure() LZpg.add_trace(iEax.Scatter(x=X_bn, y=l2xY, name='Gastos', line=dict(color='#b22222', width=4))) LZpg.add_trace(iEax.Scatter(x=X_bn, y=R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lxCM():\n jQ3Z = _aXU[~_aXU.category.isin(['general', 'transfer'])].pivot_table('amount', 'month', 'category', aggfunc='sum', fill_value=0).reset_index().melt(id_vars=['month'], value_name='amount')\n jZ6p = jQ3Z[jQ3Z.category.eq('income')]\n Oa1e = jQ3Z.groupby('month')\n LZpg = Xlvp.bar(jQ3Z[~jQ3...
[ "0.6755238", "0.66003144", "0.6203996", "0.6101464", "0.6094934", "0.60415655", "0.59438545", "0.5774241", "0.57738733", "0.5750559", "0.5690196", "0.56015974", "0.5585369", "0.5550076", "0.54837686", "0.5462159", "0.5456734", "0.54441255", "0.54012376", "0.53953665", "0.5364...
0.67077535
1
Creates a plotly grouped box chart showing sidebyside total volume of expenses x incomes by month of a selected year
def Krmb(vZGA): NfIr = qxb1(vZGA) X_bn = TtWp(NfIr) l2xY = Vh4U(NfIr, amount_type='expenses') RKjb = Vh4U(NfIr, amount_type='incomes') LZpg = iEax.Figure(data=[iEax.Bar(name='Gastos', x=X_bn, y=l2xY, marker_color='#b22222'), iEax.Bar(name='Rendas', x=X_bn, y=RKjb, marker_color='#22b222')]) LZpg....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FlUN(jQ3Z):\n nPrm = []\n for ITJB in jQ3Z['property_type'].unique():\n LmYr = jQ3Z[jQ3Z['property_type'] == ITJB]\n nPrm.append(iEax.Box(y=LmYr['price_paid'].values, x=LmYr['year'].values, name=ITJB, boxpoints='all', pointpos=-1, jitter=0.1))\n LAOT = iEax.Layout(boxmode='group', height...
[ "0.66928685", "0.6506821", "0.6484316", "0.63289565", "0.62608916", "0.62477225", "0.6053129", "0.6028411", "0.5814293", "0.5698219", "0.5598641", "0.5483527", "0.5405478", "0.5234495", "0.5203201", "0.51476794", "0.5138125", "0.51352656", "0.5107589", "0.5104113", "0.5065121...
0.6472378
3
This method renders the home page
def kZiy(QePW): h3qM = diNy.objects.all() if h3qM: QmTA = h3qM.temp_value wqpv = h3qM.created_time QpfX = {'temp_value', 'created_time'} return _1tc(QePW, 'base/home.html', QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home_page.html')", "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZ...
[ "0.86938477", "0.8555688", "0.8507455", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8450381", "0.8438189", "0.8438189", ...
0.0
-1
Generate anchors for once. Anchors are stored with (center_x, center_y, w, h) format.
def j672(YKHO, maxY, Dwvl, YPaw, Hbjt, gQVb): assert len(maxY) == 2, 'SSD requires sizes to be (size_min, size_max)' qvIa = [] for YRbF in range(Hbjt[0]): for r845 in range(Hbjt[1]): vHO5 = (YRbF + gQVb[0]) * YPaw UV8M = (r845 + gQVb[1]) * YPaw Mkmy = Dwvl[0] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QCoC(YKHO):\n YKHO.anchors = oyIN.zeros((YKHO.anchor_num, 4), dtype=oyIN.float32)\n zNig = YKHO.stride * YKHO.stride\n UHFx = 0\n for Mkmy in YKHO.ratios:\n VTcd = int(epAf.sqrt(zNig * 1.0 / Mkmy))\n ObL9 = int(VTcd * Mkmy)\n for KCHu in YKHO.scales:\n yzQ0 = VTcd * ...
[ "0.8031988", "0.74405766", "0.7432096", "0.7314839", "0.7310115", "0.7278248", "0.7133064", "0.711425", "0.7112615", "0.70137215", "0.70137215", "0.6983981", "0.6969387", "0.69610834", "0.6958479", "0.6925973", "0.6854886", "0.68512803", "0.6824095", "0.68085194", "0.6801783"...
0.6724028
25
Generate anchors for once. Anchors are stored with (center_x, center_y, w, h) format.
def j672(YKHO, maxY, Dwvl, YPaw, Hbjt, gQVb): assert len(maxY) == 2, 'SSD requires sizes to be (size_min, size_max)' qvIa = [] for YRbF in range(Hbjt[0]): for r845 in range(Hbjt[1]): vHO5 = (YRbF + gQVb[0]) * YPaw UV8M = (r845 + gQVb[1]) * YPaw Mkmy = Dwvl[0] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QCoC(YKHO):\n YKHO.anchors = oyIN.zeros((YKHO.anchor_num, 4), dtype=oyIN.float32)\n zNig = YKHO.stride * YKHO.stride\n UHFx = 0\n for Mkmy in YKHO.ratios:\n VTcd = int(epAf.sqrt(zNig * 1.0 / Mkmy))\n ObL9 = int(VTcd * Mkmy)\n for KCHu in YKHO.scales:\n yzQ0 = VTcd * ...
[ "0.80315864", "0.74409926", "0.74320155", "0.7315402", "0.7310704", "0.7278811", "0.7133166", "0.71147346", "0.7112511", "0.70135254", "0.70135254", "0.6983212", "0.6969283", "0.6960877", "0.6959094", "0.6926591", "0.6855371", "0.68506205", "0.68238485", "0.6808129", "0.68023...
0.67372733
23
excluding all instances of transcriptions in words from the dataset
def BCSD(YKHO, V22M): eC8x = [] for YRbF in range(len(YKHO)): if not YKHO.transcript(YRbF) in V22M: eC8x.append(YRbF) vcn7 = YKHO.sub_set(eC8x) return vcn7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(IZtf):\n mroi = ['how', 'what']\n for GIN8 in IZtf:\n if GIN8 in mroi:\n IZtf.remove(GIN8)", "def JNuq(s2mk):\n return [eOtH for eOtH in s2mk if X1AK.synsets(eOtH)]", "def RBrg(YKHO):\n vwCE = YKHO.transcript_string.encode('utf-8').split()\n uw9g = {}\n for GIN8 i...
[ "0.67918664", "0.678129", "0.66423994", "0.6593626", "0.6567239", "0.65217733", "0.6472336", "0.6453485", "0.64481556", "0.64279586", "0.6414487", "0.6400135", "0.63763654", "0.6373032", "0.63698655", "0.6360216", "0.63394004", "0.63276196", "0.6317346", "0.6303222", "0.62984...
0.81581765
0
Unique ID of an item. Sometimes provided by the database, otherwise it should be the index.
def id(YKHO, or8S): rdlD = YKHO.table.iloc[or8S] I0MX = rdlD['word_id'] return I0MX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ht7m(YKHO):\n return YKHO._item_id", "def unpH(YKHO, ZfUD):\n return YKHO.exist_products.get(hash(ZfUD['title']))", "def nh_o(YKHO):\n YKHO.itemId += 1\n return YKHO.itemId", "def wfbg(YKHO, ZfUD):\n id = YKHO.item_itemId.get(ZfUD)\n if id:\n return id\n id = YKHO.nextItemId\n...
[ "0.74380034", "0.7283227", "0.7151609", "0.7022012", "0.6928274", "0.6928274", "0.6815761", "0.6812032", "0.6796511", "0.6771045", "0.6766315", "0.6766315", "0.6766315", "0.6766315", "0.6766315", "0.6766315", "0.6766315", "0.6766315", "0.6766315", "0.6766315", "0.6766315", ...
0.0
-1
Generates subset of this set, containing only the items with respective indices in idcs
def Hvhu(YKHO, eC8x): return f2Kk(dset=YKHO, idcs=eC8x)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ddlI(YKHO, DNs0):\n iXlf = [YKHO.vertices[YRbF] for YRbF in DNs0]\n if hasattr(YKHO, 'data'):\n nPrm = TQJD(data=[YKHO.data._data[YRbF] for YRbF in DNs0], fields=YKHO.data.fields)\n return type(YKHO)(iXlf, properties=YKHO.properties, data=nPrm, crs=YKHO.crs)\n else:\n return type(...
[ "0.7081254", "0.6871851", "0.6846369", "0.68372005", "0.66942054", "0.6400488", "0.6339034", "0.63284713", "0.6237367", "0.6074455", "0.60385156", "0.59339106", "0.5922915", "0.57868207", "0.57667744", "0.5741674", "0.5630765", "0.5595789", "0.55833864", "0.5576422", "0.55723...
0.6739173
4
Takes a widget container as input (where the user has selected varables) and returns a pandas dataframe with the values for the selected variables. Example df = read_box(box)
def rFoj(TzcS): xDcj = c3ht(TzcS) bD7m = TzcS.children[3].value nPrm = G4JS.post(bD7m, json=xDcj) dixj = eo1v.from_json_stat(nPrm.json(object_pairs_hook=U8Lr)) return dixj[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHwu():\n IrTA = aevO.sidebar.slider('Sepal length', 4.3, 7.9, 5.4)\n olYF = aevO.sidebar.slider('Sepal width', 2.0, 4.4, 3.4)\n NJZp = aevO.sidebar.slider('Petal length', 1.0, 6.9, 1.3)\n AduQ = aevO.sidebar.slider('Petal width', 0.1, 2.5, 0.2)\n nPrm = {'sepal_length': IrTA, 'sepal_width': olY...
[ "0.6033229", "0.5905692", "0.57060325", "0.5519732", "0.55083025", "0.54302645", "0.5422", "0.53522366", "0.53394306", "0.52531415", "0.52504456", "0.5209191", "0.5185303", "0.5157767", "0.51412284", "0.51298785", "0.5065238", "0.5063606", "0.5053986", "0.5029163", "0.4999956...
0.0
-1
Returns a pandas dataframe of the premade table indicated by the premade table_id or the full_url.
def ECK8(D3T3=None, gP5x='json'): if gP5x == 'json': nPrm = G4JS.get(D3T3) jQ3Z = eo1v.from_json_stat(nPrm.json(object_pairs_hook=U8Lr)) jQ3Z = jQ3Z[0] elif gP5x == 'csv': jQ3Z = rLdf.read_csv(D3T3) else: print("Table_format is incorrectly specified. \n I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oYdR(YKHO, GTA_):\n iZr3 = 'SELECT * FROM {tb}'.format(tb=GTA_)\n DpUl = YKHO.conn.cursor()\n DpUl.execute(iZr3)\n ZWCE = [JBZA[0] for JBZA in DpUl.description]\n usx6 = DpUl.fetchall()\n jQ3Z = rLdf.DataFrame(usx6, columns=ZWCE)\n return jQ3Z", "def QjtW(tyNF: str, DfZ1='id'):\n bD7m...
[ "0.6911987", "0.66861784", "0.65258104", "0.6461572", "0.63336194", "0.6329985", "0.62915593", "0.626002", "0.62410593", "0.6223202", "0.62034434", "0.6192353", "0.6169904", "0.61495626", "0.6139391", "0.6136701", "0.6050624", "0.6037779", "0.6029309", "0.5984283", "0.5980155...
0.6009387
19
Returns a pandas dataframe of the premade table indicated by the premade table_id or the full_url.
def dXXu(vLon=None, rQow='en', NKRf='http://data.ssb.no/api/v0/dataset', D3T3=None, gP5x='json'): if D3T3 is None: D3T3 = '{base_url}/{premade_id}.{table_format}?lang={language}'.format(base_url=NKRf, premade_id=str(vLon), language=rQow, table_format=gP5x) if gP5x == 'json': nPrm = G4JS.get(D3T3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oYdR(YKHO, GTA_):\n iZr3 = 'SELECT * FROM {tb}'.format(tb=GTA_)\n DpUl = YKHO.conn.cursor()\n DpUl.execute(iZr3)\n ZWCE = [JBZA[0] for JBZA in DpUl.description]\n usx6 = DpUl.fetchall()\n jQ3Z = rLdf.DataFrame(usx6, columns=ZWCE)\n return jQ3Z", "def QjtW(tyNF: str, DfZ1='id'):\n bD7m...
[ "0.69111186", "0.6685955", "0.6461527", "0.63337725", "0.63293916", "0.629165", "0.6259393", "0.62412864", "0.62239844", "0.62044525", "0.6192934", "0.6170574", "0.6149594", "0.61382776", "0.61354333", "0.60509586", "0.6037656", "0.6029328", "0.6007886", "0.5984737", "0.59798...
0.65252066
2
Loads the dataset from the files contained in the list of root directories.
def AyYN(YKHO, fIeW: list, t2SB: ThermoClassList, zHv5: bool=False) -> None: YKHO.root_directory_list = fIeW YKHO.thermo_class_list = t2SB YKHO.__image_file_names = oyIN.array([], dtype=str) YKHO.__labels = oyIN.array([], dtype=oyIN.int32) H1Oi = {} for EY3S in sorted(t2SB, key=lambda a1PO: a1PO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GFqp(YKHO, jNha, MVVZ=None, mXDZ=None):\n if MVVZ is None:\n MMtT = SC2F.glob(Hy7s.path.join(jNha, '*'))\n else:\n MMtT = [Hy7s.path.join(jNha, XP5J) for XP5J in MVVZ]\n if len(MMtT) == 0:\n raise Exception('No files found using: {}'.format(Hy7s.path.join(jNha, '*')))\n if mXDZ...
[ "0.73055416", "0.72774255", "0.7263645", "0.7236538", "0.715158", "0.7128404", "0.7098536", "0.709505", "0.7066855", "0.69573873", "0.69253486", "0.6915877", "0.6877164", "0.68377745", "0.67645735", "0.6679192", "0.666423", "0.66375405", "0.6515971", "0.6508193", "0.6500643",...
0.6965724
9
Returns the image shape of the dataset.
def lNai(YKHO) -> oyIN.ndarray: return YKHO.__image_shape
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ROpF(YKHO):\n return YKHO.dataset.shape", "def lNai(YKHO):\n return YKHO.data.shape[:2]", "def lNai(YKHO):\n return YKHO.data.shape[:2]", "def ROpF(YKHO):\n return YKHO._img.shape", "def ROpF(YKHO):\n return YKHO.image.shape", "def kbUw(YKHO):\n return ROpF(YKHO._data)", "def kbUw...
[ "0.83238006", "0.81199074", "0.81199074", "0.8056691", "0.8030066", "0.7969854", "0.7955067", "0.7858771", "0.7835794", "0.7792992", "0.7792992", "0.7792992", "0.7792992", "0.7792992", "0.778404", "0.778404", "0.778404", "0.7743766", "0.7696428", "0.7640274", "0.7592229", "...
0.76583236
19
Returns the size of the validation data, i.e. the total number of images available for validation.
def KvYd(YKHO) -> int: return int(YKHO.data_size * YKHO.__validation_fraction)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTl0(YKHO):\n return len(YKHO.pipeline.data['test'])", "def zNig(YKHO):\n return len(YKHO._train_datas)", "def zNig(YKHO):\n return YKHO.data.size", "def szAg(YKHO):\n return epAf.ceil(YKHO.number_of_images / YKHO.batch_size)", "def zNig(YKHO):\n return len(YKHO.data)", "def zNig(YKHO)...
[ "0.81134355", "0.7505644", "0.7204089", "0.71143353", "0.7100024", "0.7100024", "0.7100024", "0.7100024", "0.7100024", "0.7069579", "0.7066821", "0.7014976", "0.7004748", "0.70029414", "0.7002628", "0.7001811", "0.7000675", "0.6999229", "0.6986158", "0.6983428", "0.69546866",...
0.83689624
0
Derives the ReLU lower linear relaxation of the equations
def mibA(YKHO, LSh8=None, CN9P=None, OS2K=LJVX.MIN_AREA): if LSh8 is None: if YKHO.lower_bounds is None: raise Exception('Missing lower bounds') else: LSh8 = YKHO.lower_bounds if CN9P is None: if YKHO.upper_bounds is None: raise Exception('Missing uppe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def APUW(YKHO):\n LVAh = YKHO.x\n LVAh[LVAh <= 0] = 0\n LVAh[LVAh > 0] = 1\n return LVAh\n raise NotImplementedError('ReLU gradient not implemented')", "def APUW(YKHO):\n Ro40 = oyIN.where(YKHO.x > 0, 1, 0)\n return Ro40", "def Yknt(YKHO, EcVT):\n EcVT[EcVT <= 0] = 0\n EcVT[EcVT > 0]...
[ "0.7131731", "0.6747368", "0.6707108", "0.66877747", "0.6657281", "0.6642916", "0.6642612", "0.6607677", "0.6585322", "0.6545697", "0.6419472", "0.64046717", "0.6376201", "0.6376201", "0.6376201", "0.6376201", "0.6376201", "0.6376201", "0.6376201", "0.6376201", "0.63710904", ...
0.6170773
36
Derives the ReLU upper linear relaxation of the equations
def ArMr(YKHO, LSh8=None, CN9P=None): if LSh8 is None: if YKHO.lower_bounds is None: raise Exception('Missing lower bounds') else: LSh8 = YKHO.lower_bounds if CN9P is None: if YKHO.upper_bounds is None: raise Exception('Missing upper bounds') e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PPFh(YKHO, gEpz, wyyA):\n WKvO = wyyA\n WKvO = oyIN.array(WKvO, copy=True)\n WKvO[WKvO <= 0] = 0\n WKvO[WKvO > 0] = 1\n cf5c = gEpz * WKvO\n return cf5c", "def APUW(YKHO):\n LVAh = YKHO.x\n LVAh[LVAh <= 0] = 0\n LVAh[LVAh > 0] = 1\n return LVAh\n raise NotImplementedError('Re...
[ "0.7306047", "0.7157563", "0.7006479", "0.68646705", "0.68079174", "0.67728573", "0.6710409", "0.66703856", "0.66508466", "0.66477334", "0.66354465", "0.6621035", "0.66203266", "0.66203266", "0.6595877", "0.64985704", "0.6485435", "0.6472963", "0.6459412", "0.6459412", "0.645...
0.68053263
5
Parallel ReLU approximation of the given equation.
def vfuS(YKHO, GUUu, PtXs, vC9B, P6bq, zBIZ): if not zBIZ in ['lower', 'upper']: raise Exception('Got invalid bound line') eQUr = P6bq / (P6bq - vC9B) GUUu *= eQUr if zBIZ == 'lower': PtXs *= eQUr else: PtXs = PtXs * eQUr - eQUr * vC9B return (GUUu, PtXs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def APUW(YKHO):\n LVAh = YKHO.x\n LVAh[LVAh <= 0] = 0\n LVAh[LVAh > 0] = 1\n return LVAh\n raise NotImplementedError('ReLU gradient not implemented')", "def QQIR(YKHO, WKvO):\n YKHO.x = WKvO\n hlel = oyIN.maximum(0, WKvO)\n return hlel", "def ykvB(svnZ, bnhf, RHJb, rLog, Kt_s, C7Ls, Vuk...
[ "0.60607123", "0.6044863", "0.6026348", "0.60195994", "0.6013499", "0.6012523", "0.5983782", "0.597557", "0.59669906", "0.5895011", "0.58894837", "0.5825326", "0.58149797", "0.5802161", "0.58004385", "0.5769199", "0.5764912", "0.5763584", "0.57361203", "0.5735019", "0.5728779...
0.0
-1
Rotates the right side of the cube_list clockwise.
def xAat(Uj1v): tt4U(Uj1v) fVat(Uj1v) SY8u(Uj1v) return Uj1v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def toYp(Uj1v):\n tt4U(Uj1v)\n jYfa(Uj1v)\n SY8u(Uj1v)\n return Uj1v", "def Syx8(YKHO):\n HEZd = 'R'\n DWJ0 = list(YKHO.cube.rotate_cube(HEZd))\n Aofo = [oyIN.array([['g', 'g'], ['g', 'g']], dtype='<U1'), oyIN.array([['y', 'o'], ['y', 'o']], dtype='<U1'), oyIN.array([['o', 'w'], ['o', 'w']],...
[ "0.76209295", "0.761266", "0.7418328", "0.7176604", "0.710287", "0.7078367", "0.6937082", "0.69143003", "0.6856673", "0.68461305", "0.6794458", "0.676427", "0.67381024", "0.6703621", "0.6685076", "0.6683571", "0.6667203", "0.65772945", "0.65599954", "0.6471596", "0.6449253", ...
0.81258357
0
Rotates the right side of the cube_list counterclockwise.
def toYp(Uj1v): tt4U(Uj1v) jYfa(Uj1v) SY8u(Uj1v) return Uj1v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xAat(Uj1v):\n tt4U(Uj1v)\n fVat(Uj1v)\n SY8u(Uj1v)\n return Uj1v", "def Syx8(YKHO):\n HEZd = 'R'\n DWJ0 = list(YKHO.cube.rotate_cube(HEZd))\n Aofo = [oyIN.array([['g', 'g'], ['g', 'g']], dtype='<U1'), oyIN.array([['y', 'o'], ['y', 'o']], dtype='<U1'), oyIN.array([['o', 'w'], ['o', 'w']],...
[ "0.80161667", "0.7563545", "0.74146587", "0.72397256", "0.7107339", "0.6995983", "0.68357015", "0.67977905", "0.6779721", "0.6744077", "0.6717455", "0.66077065", "0.6592382", "0.6561183", "0.6556645", "0.6533344", "0.6495726", "0.6460009", "0.64518946", "0.64374316", "0.63750...
0.7527656
2
Rotates the left side of the cube_list clockwise.
def yobH(Uj1v): SY8u(Uj1v) fVat(Uj1v) tt4U(Uj1v) return Uj1v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tt4U(Uj1v):\n SY8u(Uj1v)\n SY8u(Uj1v)\n SY8u(Uj1v)\n return Uj1v", "def mJ9T(YKHO):\n HEZd = 'L'\n DWJ0 = list(YKHO.cube.rotate_cube(HEZd))\n Aofo = [oyIN.array([['g', 'g'], ['g', 'g']], dtype='<U1'), oyIN.array([['r', 'y'], ['r', 'y']], dtype='<U1'), oyIN.array([['y', 'o'], ['y', 'o']],...
[ "0.8521198", "0.79685587", "0.7698663", "0.74194646", "0.7376219", "0.7364561", "0.723923", "0.71934074", "0.7075466", "0.7056575", "0.70334315", "0.69970316", "0.69277805", "0.68947583", "0.68325144", "0.68210965", "0.67885363", "0.6783461", "0.6738628", "0.66348", "0.657631...
0.8266426
1
Rotates the left side of the cube_list counterclockwise.
def QGNO(Uj1v): SY8u(Uj1v) jYfa(Uj1v) tt4U(Uj1v) return Uj1v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tt4U(Uj1v):\n SY8u(Uj1v)\n SY8u(Uj1v)\n SY8u(Uj1v)\n return Uj1v", "def yobH(Uj1v):\n SY8u(Uj1v)\n fVat(Uj1v)\n tt4U(Uj1v)\n return Uj1v", "def mJ9T(YKHO):\n HEZd = 'L'\n DWJ0 = list(YKHO.cube.rotate_cube(HEZd))\n Aofo = [oyIN.array([['g', 'g'], ['g', 'g']], dtype='<U1'), o...
[ "0.85012096", "0.818709", "0.794474", "0.74676716", "0.7256383", "0.72369987", "0.70646816", "0.6961701", "0.6946463", "0.69390154", "0.6892068", "0.6867442", "0.6828253", "0.6825331", "0.68026096", "0.6723013", "0.66132116", "0.65768117", "0.65574956", "0.65163153", "0.65104...
0.7628549
3
that converts a numeric label vector into a onehot matrix
def zGX0(fuBA, KndY): if type(KndY) is not int: return None if fuBA is None or type(fuBA) != oyIN.ndarray: return None for Z9rn in fuBA: if Z9rn >= KndY or Z9rn < 0: return None r8hN = fuBA.shape[0] t2_1 = oyIN.zeros((r8hN, KndY)) for rdlD, lHSn in zip(t2_1, f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pTWU(UXqs, nZt5):\n aFAW = oyIN.zeros(nZt5)\n aFAW[UXqs] = 1\n return aFAW", "def u7UO(UXqs, bTu0=2):\n import numpy as oyIN\n KLLm = oyIN.zeros((len(UXqs), bTu0), dtype=oyIN.uint8)\n for YRbF in range(len(UXqs)):\n KLLm[YRbF, int(UXqs[YRbF] - 1)] = 1\n return KLLm", "def sjGC(b...
[ "0.84427243", "0.83169335", "0.8248666", "0.8032837", "0.80040425", "0.7981706", "0.79662246", "0.79623336", "0.7956706", "0.7950935", "0.79505235", "0.7917842", "0.7912336", "0.79033035", "0.7900165", "0.7855747", "0.78505445", "0.78505445", "0.78505445", "0.7847322", "0.784...
0.0
-1
Convert to/from Decimal when working with DynamoDB (which only accepts Decimals for numbers) WARN There may be a loss of precision but it is assumed to not affect our usecase
def mu9Y(): UXJe.clear_traps() Wkbt = R6kd.serialize OjCO = Gm67.deserialize def nVU4(YKHO, BWXx): if isinstance(BWXx, float): BWXx = ZjSO(BWXx) return Wkbt(YKHO, BWXx) def QNjf(YKHO, BWXx): BWXx = OjCO(YKHO, BWXx) if isinstance(BWXx, ZjSO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _3Ag(YKHO, BWXx):\n return BWXx.to_decimal()", "def _3Ag(YKHO, BWXx):\n return BWXx.to_decimal()", "def hIbp(BWXx: t.Any) -> ZjSO:\n return ZjSO(BWXx)", "def ZBGp(wEf2):\n return float(wEf2)", "def x8I_(wEf2):\n if isinstance(wEf2, ZjSO):\n return float(wEf2)\n return wEf2", ...
[ "0.7714067", "0.7714067", "0.75539654", "0.72507405", "0.69677407", "0.680333", "0.68014437", "0.6641506", "0.65624845", "0.6536792", "0.6483981", "0.64125466", "0.64125466", "0.6299127", "0.6287727", "0.6280396", "0.6261581", "0.62260425", "0.61969995", "0.6175216", "0.61097...
0.6726598
7
Return the path where the project is stored If no path is given then the directory equals the project name
def O0al(Kz8N, bNKA): return Kz8N.findall('project[@name="{}"]'.format(bNKA))[0].attrib.get('path', bNKA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fJd3(YKHO):\n I7OS = None\n RVMj = YKHO.comp_prefs['Paths'].get('Map', None)\n if RVMj:\n I7OS = RVMj.get('Project:', None)\n return I7OS", "def TdjZ():\n return GkAb(gCuF.PROJECT_DIR)", "def GOQM(YKHO):\n return Hy7s.path.expanduser(YKHO.sqlfluff_config.get_section((YKHO.templater...
[ "0.8023564", "0.78888243", "0.7857894", "0.76962245", "0.7675844", "0.7612164", "0.7544314", "0.753739", "0.7445059", "0.7439758", "0.73728657", "0.73215693", "0.7263962", "0.7229706", "0.72038746", "0.71774435", "0.7167297", "0.7091329", "0.7079118", "0.705912", "0.7002835",...
0.65714806
62
Compute the Gaussian term in the BFE
def HvsV(YKHO): Oa10 = oyIN.mean(YKHO.zvar1 / YKHO.rvar1 + oyIN.log(2 * oyIN.pi * YKHO.rvar1)) Oa10 = Oa10 * oyIN.product(YKHO.shape1) if not YKHO.is_complex: Oa10 = Oa10 / 2 return Oa10
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gkmu(WKvO, yGTL=0, WTkW=26.4, k0lF=1, nxyw=0):\n Fg_i = 1 / (WTkW * oyIN.sqrt(2 * oyIN.pi))\n eHNT = Fg_i * oyIN.power(oyIN.e, -((WKvO - yGTL) ** 2 / (2 * WTkW ** 2)))\n return k0lF * eHNT + nxyw", "def IAWS(WKvO, JBMS, WTkW):\n return oyIN.exp(-oyIN.square(WKvO - JBMS) / (2 * oyIN.square(WTkW)))...
[ "0.703246", "0.69801235", "0.6965129", "0.6963982", "0.69310075", "0.691842", "0.6871344", "0.68653834", "0.68414223", "0.681016", "0.6799086", "0.67345613", "0.6701154", "0.66861856", "0.66811895", "0.66327184", "0.66315466", "0.6629523", "0.66265506", "0.6623255", "0.661402...
0.0
-1
Convert a ProxyFSstyle Unix timestamp to a Swift XTimestamp header. ProxyFS uses an integral number of nanoseconds since the epoch, while Swift uses a floatingpoint number with centimillisecond (10^5 second) precision.
def FS0x(U6xu): return '{0:.5f}'.format(float(U6xu) / 1000000000)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u7it(Ei1M):\n return int(round(Ei1M * 1000000.0))", "def wAg2(YKHO):\n try:\n WgTK = kJUT.parse(E3oo)\n YKHO.out_unix_milli = str(int((WgTK - YKHO.epoch_1970).total_seconds() * 1000))\n except Exception as e:\n if not qIxc.log:\n pass\n else:\n G9jH....
[ "0.6420203", "0.641238", "0.6385286", "0.63408726", "0.63316077", "0.63173443", "0.6270595", "0.62387526", "0.6224708", "0.6172716", "0.6169617", "0.6118644", "0.6104126", "0.6067934", "0.6057176", "0.6057018", "0.6016646", "0.5998626", "0.599771", "0.59944415", "0.5992304", ...
0.7334592
0
Convert a Unix timestamp to an ISO8601 timestamp.
def taUh(U6xu): e9CD = qcWV.datetime.utcfromtimestamp(U6xu / 1000000000.0).isoformat() if e9CD[-7] != '.': e9CD += '.000000' return e9CD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShY9(Ir3V):\n return qcWV.datetime.fromtimestamp(int(Ir3V)).strftime('%Y-%m-%d %H:%M:%S')", "def ZhGg(E3oo):\n return Eei1(qcWV.datetime.utcfromtimestamp(E3oo))", "def CQ0f(E3oo):\n if E3oo is None:\n return None\n return qcWV.isoformat(qcWV.utcfromtimestamp(int(E3oo)))", "def Ft2K(Ir3...
[ "0.7533406", "0.7212999", "0.70693547", "0.69501615", "0.6945923", "0.68842906", "0.6734284", "0.6683595", "0.6657134", "0.6648342", "0.6617415", "0.659037", "0.65685993", "0.65102386", "0.6463697", "0.64242846", "0.6393386", "0.639169", "0.63544", "0.6320679", "0.62869465", ...
0.63215464
19
Convert a Unix timestamp to an IMFFixdate timestamp.
def luWT(U6xu): return ITS7.strftime('%a, %d %b %Y %H:%M:%S GMT', ITS7.gmtime(epAf.ceil(U6xu / 1000000000.0)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pu0l(Ei1M=1459141485):\n return qcWV.datetime.fromtimestamp(int(Ei1M))", "def u7it(Ei1M):\n return int(round(Ei1M * 1000000.0))", "def QGdl(E3oo):\n return E3oo / 1000000.0", "def ffVq(_c1T):\n return int(ITS7.mktime(_c1T.timetuple()) * 1000)", "def tAwz(Emd4, E3oo):\n if not isinstance(...
[ "0.7322303", "0.7154461", "0.7041307", "0.70184076", "0.68960834", "0.68862784", "0.67894566", "0.6457113", "0.63675153", "0.6362558", "0.6274187", "0.62563026", "0.62460876", "0.6234938", "0.62332195", "0.62326264", "0.6224717", "0.61910015", "0.6173991", "0.6158443", "0.613...
0.0
-1
Get shape of array or 1 if the object does not support shape
def k6Ni(ezWE, d6pt): try: return ezWE.shape[d6pt] except AttributeError: return 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kbUw(WKvO):\n return None if oLG2.isscalar(WKvO) else WKvO.shape", "def ROpF(YKHO):\n YKHO._check_assigned()\n if YKHO.lazy and YKHO.transformer is not None and hasattr(YKHO.transformer, 'get_transformed_shape'):\n return YKHO.transformer.get_transformed_shape(YKHO.values)\n else:\n ...
[ "0.7697862", "0.7428352", "0.73896754", "0.7322635", "0.72524244", "0.7245066", "0.71863836", "0.7156521", "0.713971", "0.7101113", "0.70778614", "0.7028759", "0.7028759", "0.70055145", "0.69855595", "0.69683975", "0.6959355", "0.6941429", "0.6924605", "0.69074667", "0.690072...
0.743687
1
Returns a version of A with the minimum number of dimensions specified by "ndmin". I `A` is `None`, return the defult given by `A_default`
def UKxq(k0lF, _xpg, eil8=3): if k0lF is None: return oyIN.array(_xpg, ndmin=eil8) else: return oyIN.array(k0lF, ndmin=eil8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Csi5(jzdc, lDq6=None, e_2d=None, yYKB=1):\n if yYKB:\n bA9W = ywwl.greater\n else:\n bA9W = ywwl.greater_equal\n if e_2d == None:\n jzdc = ywwl.ravel(jzdc)\n e_2d = 0\n if lDq6 == None:\n lDq6 = ywwl.minimum.reduce(ywwl.ravel(jzdc)) - 11\n UOyk = ywwl.maximum.r...
[ "0.6284689", "0.6102426", "0.6052727", "0.6025506", "0.60000527", "0.5954084", "0.59052277", "0.5786386", "0.57333195", "0.5711122", "0.56931424", "0.56679213", "0.5667801", "0.5596154", "0.55952406", "0.55802566", "0.5565413", "0.5558123", "0.5557664", "0.5513188", "0.546084...
0.8403805
0
Set the name for this run.
def iQkb(qIxc, iXC1): iXC1.experiment_info['name'] = qIxc iXC1.run_logger = iXC1.root_logger.getChild(qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP", "def WZrJ(YKHO, mWFP...
[ "0.8201576", "0.8201576", "0.8201576", "0.8201576", "0.8201576", "0.8194042", "0.8194042", "0.8188446", "0.8176618", "0.8176618", "0.81599504", "0.81488526", "0.813865", "0.813366", "0.8089178", "0.807367", "0.8053386", "0.80366105", "0.78878784", "0.7826724", "0.78101045", ...
0.0
-1
plot loss or accuracy vs epoch of nn models.
def GPBR(PzFb, UXqs, leAC, i4e5): QrM1.figure(figsize=(12, 5)) for YRbF in range(len(UXqs)): QrM1.plot(PzFb[YRbF], label=UXqs[YRbF], alpha=0.75) QrM1.title(leAC) QrM1.xlabel('epoch') QrM1.ylabel(i4e5) QrM1.legend(bbox_to_anchor=(1.05, 1.0), loc='upper left') QrM1.tight_layout() Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JC25(YKHO):\n YKHO.train\n FLXQ = YKHO.history\n mBbd(FLXQ)", "def Vlbd():\n QrM1.plot(FLXQ.history['loss'], label='training_loss')\n QrM1.plot(FLXQ.history['val_loss'], label='val_loss ')\n QrM1.xlabel('Epoch')\n QrM1.ylabel('Loss')\n QrM1.show()\n QrM1.plot(FLXQ.history['acc'], l...
[ "0.7840626", "0.7762002", "0.7590462", "0.7568865", "0.7496373", "0.7421823", "0.73668873", "0.736629", "0.7361258", "0.73251235", "0.7300026", "0.7290479", "0.72688633", "0.72678214", "0.726457", "0.7261784", "0.72438496", "0.7228393", "0.72273076", "0.71962136", "0.71784425...
0.7580432
3
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def rhd_(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + nMvt.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU...
[ "0.74892753", "0.72888154", "0.7159203", "0.7152673", "0.7065861", "0.6985656", "0.6965553", "0.69546396", "0.69123477", "0.6835058", "0.68175006", "0.68092614", "0.68046975", "0.68046975", "0.68046975", "0.68046975", "0.68046975", "0.68046975", "0.67853945", "0.6754717", "0....
0.6757285
27
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def AOzf(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + nMvt.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '...
[ "0.7604412", "0.7447652", "0.74042964", "0.72808254", "0.7208795", "0.7165644", "0.7157375", "0.71450114", "0.71450114", "0.71450114", "0.71450114", "0.71450114", "0.71450114", "0.7131455", "0.7100775", "0.70969015", "0.70969015", "0.70969015", "0.70969015", "0.70969015", "0....
0.70625025
44
Create the message object
def FIMM(YKHO, JfyU, UzPC, *qIxc): YKHO.func = JfyU YKHO.connection = UzPC YKHO.args = qIxc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K1ka(YKHO, *qIxc, **YSA3):\n return CWic(*qIxc, **YSA3)", "def jfL_(YKHO):\n Dfxc = YKHO.msg_type\n if Dfxc == 'PUBMSG':\n Dfxc = 'PRIVMSG'\n U5bT = '{} {}'.format(Dfxc, YKHO.target)\n if YKHO.content:\n U5bT += ' :{}'.format(YKHO.content)\n return U5bT + '\\r\\n'", "def aRK...
[ "0.76504874", "0.7585833", "0.75186765", "0.74360585", "0.74298024", "0.7383071", "0.7336232", "0.72981703", "0.7278692", "0.7187506", "0.7160506", "0.71086955", "0.71086955", "0.71086955", "0.70868015", "0.70794654", "0.70493186", "0.7034987", "0.70267284", "0.7016149", "0.7...
0.0
-1