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
Get the PostProcessor instance from name.
def NMoC(Emd4, mWFP): Emd4.initialize() if isinstance(mWFP, Emd4): return mWFP else: return Emd4.mapping[mWFP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mc4I(YKHO) -> h8nf[zPFi]:\n if YKHO.lvp == i7EE.COBOL_TO_CSHARP_9:\n return hMN9(YKHO.itl)\n return zPFi()", "def iSDi(YKHO, mWFP):\n rV9y = YKHO.get_class(mWFP)\n return rV9y()", "def P5KH(mWFP):\n if mWFP not in wgFX.keys():\n raise ValueError('Preprocessing name [%s] was not...
[ "0.60957783", "0.6073131", "0.60189795", "0.6015558", "0.5971188", "0.58620197", "0.57180065", "0.57180065", "0.5665293", "0.56478566", "0.56100184", "0.560695", "0.5492398", "0.5425049", "0.54160684", "0.54078543", "0.5396875", "0.5375093", "0.53543603", "0.5339036", "0.5290...
0.53907084
17
The number of clusters.
def GFVk(YKHO): return YKHO.C.shape[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o_ia(YKHO):\n return len(YKHO.clusters)", "def o_ia(YKHO):\n return YKHO.model.n_clusters", "def H8Ca(YKHO) -> int:\n return len(YKHO.get_all_cluster_ids())", "def R1f6(YKHO) -> int:\n R1f6 = max(1, round(16 ** 3 * (YKHO.vein.purity / 100.0) / YKHO.cluster_size))\n return YKHO.distribution...
[ "0.90770864", "0.8770899", "0.8740967", "0.85587204", "0.79343665", "0.7782609", "0.7593966", "0.754406", "0.75056577", "0.74485517", "0.7431507", "0.74101084", "0.73721766", "0.72819096", "0.7266387", "0.7247217", "0.7159796", "0.7137192", "0.71235263", "0.7120876", "0.71100...
0.0
-1
Create label embedding by doing convexcombination of pifa embedding and existing label embedding. To use this function, Input feature (X) dimension should be the same as existing label feature (Z) dimension.
def meKS(fuBA, EcVT, Nk6w, Cwt5=0.5, RcgH=-1, SEYk=True): if EcVT.shape[1] != Nk6w.shape[1]: raise ValueError(f'X and Z should have same dimension to do convex combination. {EcVT.shape[1]}!={EcVT.shape[1]}.') if isinstance(Cwt5, oyIN.ndarray): if Cwt5.ndim != 1: raise ValueError(f'If...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YCM5(fuBA, EcVT, Nk6w, RcgH=-1, SEYk=True):\n DJmt = Lwhb.pifa(fuBA, EcVT, threads=RcgH, normalized_Y=SEYk)\n if not isinstance(DJmt, (pE4I.csr_matrix, oyIN.ndarray)) or not isinstance(Nk6w, (pE4I.csr_matrix, oyIN.ndarray)):\n raise NotImplementedError('type(pifa) and type(Z) should be row-major s...
[ "0.57877356", "0.5531563", "0.5423148", "0.5339438", "0.53028643", "0.52179", "0.5179449", "0.51564217", "0.5142913", "0.51412994", "0.51360196", "0.5126329", "0.5116066", "0.5088218", "0.50796896", "0.50665027", "0.505623", "0.50417304", "0.5040875", "0.50404876", "0.5028736...
0.62399524
0
The end date of the current term
def KhBf(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'end_date')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhBf(YKHO) -> str:\n return qe4Y.get(YKHO, 'end_date')", "def KhBf(YKHO) -> str:\n return qe4Y.get(YKHO, 'end_date')", "def KhBf(YKHO):\n return YKHO.__end_date", "def KhBf(YKHO):\n return YKHO._end_date", "def KhBf(YKHO):\n return YKHO._end_date", "def KhBf(YKHO):\n return YKHO._en...
[ "0.8014741", "0.8014741", "0.7927234", "0.78036445", "0.78036445", "0.78036445", "0.77622783", "0.75670964", "0.75133187", "0.7305878", "0.72916895", "0.7013241", "0.69441676", "0.69337654", "0.6813395", "0.6737494", "0.6737494", "0.6670866", "0.6643577", "0.6623826", "0.6601...
0.7624856
7
The start date of the current term
def kepv(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'start_date')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUNa(YKHO):\n return '%d%02d' % (YKHO.year, YKHO.term)", "def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')", "def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')", "def kepv(YKHO):\n return YKHO.__start_date", "def Kx9c(YKHO):\n return qcWV.date(2016, 1, 4)", "def ...
[ "0.8313013", "0.77163315", "0.77163315", "0.7669511", "0.7624826", "0.75638956", "0.75638956", "0.75638956", "0.75638956", "0.7483072", "0.7297139", "0.7262415", "0.716523", "0.7146404", "0.7104689", "0.70259964", "0.6978446", "0.696415", "0.6856978", "0.6804855", "0.6799373"...
0.72893286
11
The created date of this resource.
def _EYN(YKHO) -> str: return qe4Y.get(YKHO, 'created')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a0GP(YKHO):\n return YKHO._created_date", "def a0GP(YKHO):\n return YKHO._created_date", "def JjkJ(YKHO):\n return YKHO._date_created", "def JjkJ(YKHO):\n return YKHO._date_created", "def JjkJ(YKHO):\n return YKHO._date_created", "def JjkJ(YKHO) -> qcWV:\n return YKHO._date_created"...
[ "0.8752678", "0.8752678", "0.8514051", "0.8514051", "0.8514051", "0.84255594", "0.83635926", "0.83635926", "0.83635926", "0.8300944", "0.8245852", "0.82184666", "0.8198086", "0.813445", "0.8043646", "0.8043646", "0.79941124", "0.7802316", "0.7742131", "0.77390605", "0.7710792...
0.7867446
18
Whether the ProfessionalService subscription will auto renew upon term end.
def z2Wi(YKHO) -> h8nf[bool]: return qe4Y.get(YKHO, 'auto_renew')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ECxp(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'enable_renewal')", "def z2Wi(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'auto_renew')", "def z2Wi(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'auto_renew')", "def z2Wi(YKHO) -> h8nf[qe4Y.Input[bool]]:\n ...
[ "0.7418297", "0.7314621", "0.7263111", "0.7263111", "0.6769483", "0.65011126", "0.6419326", "0.6162644", "0.6084027", "0.60409683", "0.60080487", "0.5987263", "0.59204906", "0.5907228", "0.5893116", "0.5887998", "0.5840166", "0.5812856", "0.5787807", "0.5710325", "0.56988174"...
0.7660485
0
The Payment channel for the ProfessionalServiceSubscription.
def kD14(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'payment_channel_type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YwkQ(YKHO) -> 'Channel':\n return YKHO._channel", "def iNkx(YKHO):\n return YKHO.channel", "def YwkQ(YKHO):\n if not hasattr(YKHO, '_channel'):\n YKHO._channel = YKHO.new_channel()\n return YKHO._channel", "def YwkQ(YKHO):\n return YKHO._channel", "def YwkQ(YKHO):\n return YKHO...
[ "0.61375487", "0.61137915", "0.6095195", "0.6064248", "0.6064248", "0.6060338", "0.60300255", "0.5991423", "0.5962759", "0.5948172", "0.58050066", "0.57658273", "0.57658273", "0.5711671", "0.5691761", "0.56885844", "0.5660841", "0.56378996", "0.5581936", "0.5581936", "0.55819...
0.63715065
0
The quote id which the ProfessionalService will be purchase with.
def BJ2A(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'quote_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zJ7I(YKHO) -> str:\n return qe4Y.get(YKHO, 'order_id')", "def Mc9N(YKHO):\n return YKHO._product_id", "def Mc9N(YKHO):\n return YKHO._product_id", "def Mc9N(YKHO):\n return YKHO._product_id", "def Mc9N(YKHO):\n return YKHO._product_id", "def Mc9N(YKHO) -> qe4Y.Output[str]:\n return ...
[ "0.64345473", "0.61856604", "0.61856604", "0.61856604", "0.61856604", "0.6106804", "0.5992978", "0.5960804", "0.58486474", "0.584414", "0.5833194", "0.5833194", "0.58055466", "0.58055466", "0.58055466", "0.58055466", "0.58055466", "0.58055466", "0.58055466", "0.58055466", "0....
0.82456964
0
The ProfessionalService Subscription Status.
def jGRS(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'status')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oQLg(YKHO):\n return YKHO.service.status()", "def VLTN(YKHO):\n return gTEQ('PrlLic_GetStatus', YKHO.handle)", "async def status(OaeV):\n OeZe = await qp67.create()\n CBIr = OaeV.message.author\n try:\n JuHa = await dYAF(CBIr, OeZe)\n if JuHa is None:\n CilE = await ...
[ "0.6869046", "0.6556913", "0.6547009", "0.6528922", "0.6309315", "0.62895375", "0.62541044", "0.62502533", "0.62355095", "0.6233977", "0.62305117", "0.62305117", "0.62305117", "0.62093824", "0.6191496", "0.61901534", "0.61901534", "0.61895096", "0.61771303", "0.61726195", "0....
0.0
-1
Get the default config path for experiments.
def Z8AL(GPtr: configs.Config) -> str: return Hy7s.path.join(GPtr.model_training.dir_out, b32v.DEFAULT_FILENAME_CONFIG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sQ_Z(YKHO):\n return QwOS", "def yDgW(YKHO):\n return GPtr.read(oAb3.Path(xAKo).parent / 'ext.conf')", "def OeYH() -> GkAb:\n return z42u() / 'pyflow' / 'conf' / u8az", "def Pu3K():\n global args, ConfigPathDefault\n if qIxc.config_location:\n return qIxc.config_location\n return...
[ "0.7820701", "0.75383955", "0.75244564", "0.7482554", "0.7299632", "0.72946477", "0.7243117", "0.72027284", "0.71528786", "0.7136344", "0.71099794", "0.71000916", "0.7093821", "0.70760745", "0.69760495", "0.6910145", "0.6893281", "0.6893019", "0.6873742", "0.6823642", "0.6815...
0.70989406
12
Get the default model training history path for experiments.
def EpXa(GPtr: configs.Config) -> str: return Hy7s.path.join(GPtr.model_training.dir_out, QUrH.DEFAULT_FILENAME_HISTORY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ycIE(onns):\n return mpVs + 'specialists/' + ZGE9(onns) + '/train_history'", "def EpXa():\n try:\n Phkj = Hy7s.environ[yzcD]\n return Hy7s.path.expanduser(Phkj)\n except KeyError:\n return Hy7s.path.expanduser(Nz0h)", "def OXCi(NUFl):\n hp8U = Hy7s.path.dirname(NUFl)\n i...
[ "0.6973911", "0.6490478", "0.6180203", "0.60814", "0.60081", "0.59983665", "0.5982291", "0.5898837", "0.5891037", "0.5872718", "0.58373094", "0.583178", "0.5786342", "0.57520497", "0.5749846", "0.5748232", "0.5734844", "0.5715807", "0.57089585", "0.56987476", "0.56987476", ...
0.7542328
0
Get the default model path for experiments.
def W4Jp(GPtr: configs.Config) -> str: return Hy7s.path.join(GPtr.model_training.dir_out, FYrf.DEFAULT_FILENAME_MODEL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nmkS():\n gHKE = RkCj.resource_filename('sst', 'misc/')\n return Hy7s.path.abspath(Hy7s.path.join(gHKE, 'model.pickle'))", "def CQmF(YKHO):\n return Hy7s.path.join(_Fei.ROOT_DIR, 'data', 'KITTI')", "def CQmF(YKHO):\n return Hy7s.path.join(_Fei.DATA_DIR, 'visual_genome')", "def CQmF(YKHO):\n ...
[ "0.73609257", "0.711327", "0.706814", "0.69689775", "0.6921504", "0.6881273", "0.6844046", "0.679698", "0.679698", "0.6777568", "0.6761588", "0.66798484", "0.66459346", "0.6603538", "0.6597902", "0.6594425", "0.6500211", "0.6453417", "0.6451742", "0.6407781", "0.6392173", "...
0.73120934
1
The SymPy Wigner 3j form of the expression. It may not be the same as the original one if mutation happened.
def VN2L(YKHO): qIxc = [] for YRbF in YKHO.indices: qIxc.extend((YRbF.j, YRbF.m)) return KzDK(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gk0d(XcU5):\n q7In = oyIN.sqrt(XcU5[2][1] ** 2 + XcU5[0][2] ** 2 + XcU5[1][0] ** 2)\n return oyIN.eye(3) + oyIN.sin(q7In) / q7In * XcU5 + (1 - oyIN.cos(q7In)) / q7In ** 2 * oyIN.dot(XcU5, XcU5)", "def x1sY(YKHO):\n if YKHO.frame.orientation == tVTy.DEFAULT_ORIENTATION:\n return oyIN.identity(...
[ "0.6194117", "0.5986359", "0.5873323", "0.5816163", "0.57903767", "0.5741107", "0.5604622", "0.55811805", "0.55420655", "0.5525014", "0.5474543", "0.54699546", "0.54216194", "0.54023105", "0.5389347", "0.5364736", "0.53354955", "0.53272015", "0.5309751", "0.5298262", "0.52816...
0.6326948
0
Project out the components of the vector on the given bases. The bases are assumed to be orthogonal, not necessarily normalized.
def qiYB(gitN, he6J): for YRbF in gitN: he6J -= he6J.project(YRbF) return he6J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xKDY(YKHO, F_On):\n EcVT = F_On - YKHO._mean\n return oyIN.dot(EcVT, YKHO.components.T)", "def xKDY(YKHO, F_On):\n return oyIN.dot(F_On, YKHO.components.T)", "def dObU(YKHO, SxVy: Vector) -> lNLu:\n FIOi = SxVy.normalize()\n return YKHO * FIOi * FIOi", "def Cr_X(jzdc, Fg_i):\n return oy...
[ "0.6590692", "0.65152144", "0.60111266", "0.59600186", "0.5843495", "0.576913", "0.5752058", "0.5752058", "0.57068765", "0.56684464", "0.5656666", "0.56137633", "0.5591189", "0.55321616", "0.5510458", "0.54859984", "0.54766124", "0.54664105", "0.5438712", "0.5433287", "0.5432...
0.730592
0
return a^k mod n
def LZZx(jzdc, G1Hx, exwG): U5bT = 1 while G1Hx > 0: if G1Hx % 2: U5bT = U5bT * jzdc % exwG G1Hx //= 2 jzdc = jzdc * jzdc % exwG return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HffB(exwG, G1Hx, r8hN):\n jzdc = list(bin(G1Hx))[2:]\n jzdc.reverse()\n KCHu = 1\n for YRbF in jzdc:\n if YRbF == '1':\n KCHu = KCHu * exwG % r8hN\n exwG = exwG * exwG % r8hN\n return KCHu", "def J_p7(jzdc, G1Hx, exwG):\n Oa1e = JZ_s(exwG)\n gXSq = tx6S(Oa1e, G1H...
[ "0.7949561", "0.77885807", "0.7624659", "0.73468274", "0.72925013", "0.72891295", "0.7229456", "0.71995234", "0.71661806", "0.71565515", "0.708678", "0.70707726", "0.7066294", "0.7061343", "0.7058341", "0.7046603", "0.70336837", "0.7025398", "0.701398", "0.6968092", "0.696574...
0.8530872
0
return whether n is a quadratic residue modulo prime p or not
def hqRq(exwG, XP5J): if LZZx(exwG, (XP5J - 1) // 2, XP5J) == 1: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lbeH(exwG):\n KCHu = str(exwG)\n for YRbF in Ni9Y(len(KCHu)):\n if not T1qg(exwG):\n return False\n KCHu = KCHu[1:] + KCHu[0]\n exwG = int(KCHu)\n return True", "def kh87(exwG):\n bGrB, WKvO = vTAe.solve(3, -1, -2 * exwG)\n return ye72(WKvO) and WKvO.is_integer(...
[ "0.73027486", "0.72157884", "0.7104419", "0.70687497", "0.70469683", "0.70250696", "0.7001637", "0.7001637", "0.698179", "0.69503385", "0.6945682", "0.6938788", "0.69155365", "0.6899548", "0.68993956", "0.68970287", "0.6896934", "0.6884099", "0.6884094", "0.68836313", "0.6881...
0.774607
0
return the smaller square root of a modulo prime p
def pUM5(jzdc, XP5J): jzdc = jzdc % XP5J for WKvO in range(XP5J // 2 + 1): if WKvO * WKvO % XP5J == jzdc: return WKvO return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWzN(jzdc, XP5J):\n if nSb3(jzdc, XP5J) != 1:\n return 0\n elif jzdc == 0:\n return 0\n elif XP5J == 2:\n return XP5J\n elif XP5J % 4 == 3:\n return pow(jzdc, (XP5J + 1) // 4, XP5J)\n KCHu = XP5J - 1\n tTpl = 0\n while KCHu % 2 == 0:\n KCHu //= 2\n ...
[ "0.73739314", "0.7368131", "0.7306269", "0.7259706", "0.72322303", "0.7186032", "0.686091", "0.6841745", "0.6790579", "0.6784048", "0.6754891", "0.6744396", "0.6726701", "0.6676071", "0.66648", "0.66332537", "0.66182226", "0.6617929", "0.6605412", "0.65917844", "0.6585745", ...
0.8091769
0
return the reverse of a modulo n
def FF5G(jzdc, exwG): xlFA = exwG Mkmy = jzdc % xlFA T8ck = [] while Mkmy: T8ck.append(jzdc // xlFA) jzdc = xlFA xlFA = Mkmy Mkmy = jzdc % xlFA if xlFA != 1: return None WKvO, LVAh = (0, 1) while T8ck: a1PO = WKvO WKvO = LVAh LV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f03v(Fg_i, exwG):\n return r4a9(Fg_i, exwG)", "def HZeU(exwG):\n return exwG[::-1]", "def f03v(Fg_i, exwG):\n return r4a9(Fg_i, exwG)", "def GCaQ(jzdc, exwG):\n Fg_i = exwG\n if abs(Fg_i) == 0:\n return (1, 0, jzdc)\n o4D3, ajwV, si3g, skBL = (0, 1, 1, 0)\n while abs(Fg_i) > 0...
[ "0.7425303", "0.7418317", "0.738211", "0.70105183", "0.6999461", "0.69878596", "0.6958133", "0.6955689", "0.6868598", "0.6706933", "0.6609888", "0.6527904", "0.65250224", "0.6491127", "0.6487782", "0.6414331", "0.6414331", "0.6400787", "0.63076913", "0.6305666", "0.6305666", ...
0.8121986
0
Returns rightjoin ratio IOU (not original IOU) Usually box1 would be bucket and box2 can be either Wear Area or MatInside
def kep4(knvf, IkxF): wT6L = GB7f([knvf.xmin, knvf.xmax], [IkxF.xmin, IkxF.xmax]) s2K5 = GB7f([knvf.ymin, knvf.ymax], [IkxF.ymin, IkxF.ymax]) XMlP = wT6L * s2K5 s1k6, zhMh = (knvf.xmax - knvf.xmin, knvf.ymax - knvf.ymin) xMw6, WL4f = (IkxF.xmax - IkxF.xmin, IkxF.ymax - IkxF.ymin) R7np = xMw6 * W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lULZ(knvf, IkxF):\n IkxF = IkxF.t()\n s1k6, zhMh = (knvf[0], knvf[1])\n xMw6, WL4f = (IkxF[0], IkxF[1])\n wpbH = ht2j.min(s1k6, xMw6) * ht2j.min(zhMh, WL4f)\n jwoo = s1k6 * zhMh + 1e-16 + xMw6 * WL4f - wpbH\n return wpbH / jwoo", "def htF0(knvf, IkxF):\n D5g7 = ht2j.max(knvf[:, :, :2], I...
[ "0.69589484", "0.6741285", "0.6672911", "0.6650604", "0.6644824", "0.6644824", "0.6635925", "0.662128", "0.657864", "0.6395771", "0.6370578", "0.6360169", "0.6336198", "0.63202405", "0.62936884", "0.62620956", "0.62080824", "0.61978775", "0.61811954", "0.6167579", "0.6127999"...
0.75182194
0
Removes bboxes of wrong area or aspect ratio.
def zWG3(c8oy, N0ky, JI5j, UjLH, Zm08, MPMJ): ETYT, P0PH = (N0ky, N0ky) B3Jc = [] for cviu in c8oy: CTii = cviu.get_label() XH3z = Prz0[CTii] rO9i = JI5j[XH3z] HmgL = UjLH[XH3z] wqnW = Zm08[XH3z] ipAf = MPMJ[XH3z] BQGg, bYzl, h3cg, Z3uP = rCr9(cviu, ET...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iVaH(YKHO, dixj):\n for H5ew in dixj.get('bbox_fields', []):\n c8oy = dixj[H5ew] * dixj['scale_factor']\n if YKHO.bbox_clip_border:\n yOrK = dixj['img_shape']\n c8oy[:, 0::2] = oyIN.clip(c8oy[:, 0::2], 0, yOrK[1])\n c8oy[:, 1::2] = oyIN.clip(c8oy[:, 1::2], 0, y...
[ "0.68065894", "0.68065894", "0.6722607", "0.6614308", "0.6477159", "0.6414996", "0.638873", "0.6333079", "0.6279583", "0.61603", "0.6112518", "0.60392505", "0.59928364", "0.5968961", "0.5945603", "0.59403706", "0.59392303", "0.59348387", "0.59313625", "0.5927118", "0.59164476...
0.7133185
0
Selects margins in pixels to select for detections. Uses intertooth distances.
def w6fU(oUSw, ETYT=640, P0PH=640, LZYw=1.3, nYKB=3.0): fu_8 = [] for FlUN in oUSw: if FlUN.get_label() == 0: BQGg, bYzl, h3cg, Z3uP = rCr9(FlUN, image_w=ETYT, image_h=P0PH) fu_8.append([BQGg, bYzl, h3cg, Z3uP]) AD5Z = [FlUN[0] + (FlUN[1] - FlUN[0]) / 2 for FlUN in fu_8] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MVIL(YKHO) -> AzJI[int, int, int, int]:\n return (YKHO.imargin[0].to_pixels(YKHO.parent.width), YKHO.imargin[1].to_pixels(YKHO.parent.width), YKHO.imargin[2].to_pixels(YKHO.parent.height), YKHO.imargin[3].to_pixels(YKHO.parent.height))", "def XWt4(YKHO) -> tuple[int, int, int, int]:\n return YKHO._widg...
[ "0.6110076", "0.5917967", "0.5810448", "0.57009494", "0.56659496", "0.5631988", "0.54503363", "0.5413209", "0.53923327", "0.522617", "0.52062994", "0.5177018", "0.5124165", "0.51230377", "0.5098288", "0.50958157", "0.50889736", "0.5087846", "0.50690097", "0.5063675", "0.50126...
0.5871274
2
Get patches of objects where each patch should include a tooth and corresponding WM landmarks below it.
def sHUT(LNo8, oUSw, uePJ, r7Kl, PocL, TwlL='toothline'): P0PH, ETYT, bGrB = LNo8.shape ohfT = [] oqHO = [] SqCm = [] jxZe = [] if TwlL == 'intertooth': tEU1, QXNB, YUWi = w6fU(oUSw, image_w=ETYT, image_h=P0PH) elif TwlL == 'toothline': tEU1, QXNB, YUWi = dZmj(oUSw, PocL, ima...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xSB0(YKHO):\n ohfT = []\n for WKvO, ewCu in enumerate(YKHO.counters):\n si3g = 1\n for Z9rn, exwG in ewCu.most_common():\n nxyw = si3g - exwG / YKHO.num_keys\n Inem = BnYr(Z9rn[0], 2 * YKHO.space_between_glyphs * WKvO, nxyw, si3g, width=YKHO.glyph_width, color=YKHO.col...
[ "0.62231636", "0.6170488", "0.6080191", "0.60318565", "0.587059", "0.5869357", "0.5863246", "0.5862629", "0.5826907", "0.58078605", "0.5785377", "0.57516426", "0.57330334", "0.56712705", "0.566753", "0.5640151", "0.5613234", "0.5548319", "0.5533929", "0.5522306", "0.5521519",...
0.63257545
0
Normalize all elements in a vector or matrix This operation is done by dividing each row vector of x by its norm, i.e., x / || x || After the operation each row of x should be a vector of unit length.
def NkkI(nPrm: np.ndarray, jDK_=0, T4Wy=2) -> tuple[oyIN.ndarray, oyIN.ndarray]: vXfG = oyIN.linalg.norm(nPrm, ord=T4Wy, axis=jDK_, keepdims=True) return (nPrm / vXfG, vXfG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(WKvO):\n WzsH = oyIN.linalg.norm(WKvO, axis=1, keepdims=True)\n print(WzsH)\n WKvO = WKvO / WzsH\n return WKvO", "def XKyw(WKvO):\n WzsH = oyIN.linalg.norm(WKvO, ord=2, axis=1, keepdims=True)\n WKvO = WKvO / WzsH\n return WKvO", "def VDTB(WKvO):\n FOSW = epAf.sqrt(QLUs(WKvO, WK...
[ "0.80641246", "0.79652774", "0.79223174", "0.79193467", "0.774033", "0.7732043", "0.768047", "0.7616763", "0.76163095", "0.7613469", "0.76076937", "0.7600002", "0.7574053", "0.75378436", "0.75070626", "0.7477457", "0.74730444", "0.74645746", "0.7448027", "0.74289113", "0.7365...
0.0
-1
Unit test app ``core`` model ``Location`` 2.1 Test that location is a location.
def c8Gz(YKHO): YKHO.assertIsInstance(YKHO.location, _JMH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kpYU(YKHO):\n Rci7 = YKHO.location\n YKHO.assertTrue(isinstance(Rci7, _JMH))\n YKHO.assertEqual(Rci7.name, 'Test Location')", "def jZqg(YKHO):\n YKHO.assertIsInstance(YKHO.one_off_training.location, _JMH)\n YKHO.assertEqual(YKHO.one_off_training.location, YKHO.location)", "def DYg8(YKHO):\n ...
[ "0.85598594", "0.78179574", "0.7669402", "0.75165844", "0.7507073", "0.7471748", "0.7461896", "0.74058753", "0.7382494", "0.7347911", "0.7293281", "0.72910255", "0.7228694", "0.7217437", "0.7025329", "0.6971885", "0.6951858", "0.69301045", "0.68527937", "0.68214864", "0.67967...
0.8313768
1
Create and save a bar graph representing the count of police deaths for each year The xaxis is year, yaxis is count
def yrSz(jQ3Z): uuEx.set(font_scale=1.5) uuEx.set_style('darkgrid') LZpg, aNZO = QrM1.subplots() LZpg.set_size_inches(15, 8) QrM1.xticks(rotation=45) aNZO.set_title('Yearly Police Deaths') kj9G = uuEx.barplot('year', 'count', data=jQ3Z, palette='winter_d') LZpg.savefig('1_graph_year_coun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aYDY(jQ3Z):\n uuEx.set(font_scale=1.5)\n uuEx.set_style('darkgrid')\n LZpg, aNZO = QrM1.subplots()\n LZpg.set_size_inches(20, 12)\n QrM1.xticks(rotation=25)\n aNZO.set_title('2001 and 2007 Police Death Causes')\n kj9G = uuEx.barplot('cause_short', 'count', data=jQ3Z, palette='bone', hue='y...
[ "0.7450756", "0.72697115", "0.72362417", "0.7095809", "0.6813179", "0.6523942", "0.61249", "0.60766643", "0.60371226", "0.60217017", "0.59915453", "0.59783196", "0.5974714", "0.5969027", "0.59505653", "0.5931583", "0.59070116", "0.5892057", "0.5820099", "0.581506", "0.5804305...
0.78675544
0
Create and save a bar graph representing the count of police deaths of one cause for every year The xaxis is year, yaxis is count
def MSuU(jQ3Z, UXqs): uuEx.set(font_scale=1.5) uuEx.set_style('darkgrid') LZpg, aNZO = QrM1.subplots() LZpg.set_size_inches(15, 8) QrM1.xticks(rotation=45) aNZO.set_title(UXqs.capitalize() + ' Police Death Causes') kj9G = uuEx.barplot('year', 'count', data=jQ3Z, palette='winter_d') mWFP ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aYDY(jQ3Z):\n uuEx.set(font_scale=1.5)\n uuEx.set_style('darkgrid')\n LZpg, aNZO = QrM1.subplots()\n LZpg.set_size_inches(20, 12)\n QrM1.xticks(rotation=25)\n aNZO.set_title('2001 and 2007 Police Death Causes')\n kj9G = uuEx.barplot('cause_short', 'count', data=jQ3Z, palette='bone', hue='y...
[ "0.79792094", "0.77567977", "0.7751755", "0.72074294", "0.6822239", "0.6261886", "0.62320924", "0.6189878", "0.6135614", "0.6122631", "0.61114997", "0.5992379", "0.59722614", "0.5963579", "0.595483", "0.590753", "0.5904286", "0.5897413", "0.587199", "0.5866743", "0.5852234", ...
0.7605764
3
Calculate the occurance percentage for the highest counted cause for the row
def pDJv(rdlD): K1nB = rdlD['max_count'] / rdlD['all_count'] K1nB *= 100 return round(K1nB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0rS(jQ3Z):\n snHQ = jQ3Z.shape[0]\n for fvDH in jQ3Z.columns:\n UHFx = jQ3Z[fvDH].value_counts(dropna=False)\n h2x8 = (UHFx / snHQ).iloc[0]\n if h2x8 > 0.95:\n print('{0}: {1:.1f}%'.format(fvDH, h2x8 * 100))\n print(UHFx)\n print()", "def WWY7(YKHO...
[ "0.634417", "0.60727507", "0.5786198", "0.57564735", "0.5738753", "0.5714478", "0.5663033", "0.5635289", "0.5610698", "0.5604262", "0.5602366", "0.55800503", "0.55777955", "0.55542934", "0.55493265", "0.55451536", "0.5515589", "0.55114174", "0.55077696", "0.5506781", "0.54793...
0.83149606
0
Get all monomers that are included in this package by their extended name.
def sjXb(YKHO): return YKHO.keys
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _i6C():\n yield from JBIo((KZ52.values() for KZ52 in RMGy.monomers.values()))", "def WfAN():\n yield from sorted(RMGy.monomers.keys())", "def n33n(YKHO):\n return [Q7me for Q7me in fiWz.__walkparts(YKHO.__relationships)]", "def CHxy():\n import pkgutil\n ZWCE = [mWFP for fjKE, mWFP, OZeO i...
[ "0.5826023", "0.5759264", "0.5675053", "0.5372965", "0.5360488", "0.53524214", "0.5337553", "0.53013045", "0.52280784", "0.5214672", "0.5208173", "0.52072376", "0.52032745", "0.51820874", "0.5169305", "0.51689535", "0.5148772", "0.514187", "0.51102906", "0.51088756", "0.51047...
0.0
-1
Checks to see if the permutation contains only one number Therefore there is only one possible permutation of this set of numbers Examples ======== >>> from sympy.combinatorics import Permutation >>> Permutation([0]).is_Singleton True >>> Permutation([0, 1]).is_Singleton False See Also ======== is_Empty
def bnW9(YKHO): return YKHO.size == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iHGU(XP5J: List[int]) -> bool:\n npHX(XP5J)\n for YRbF in range(len(XP5J)):\n if XP5J[YRbF] != YRbF:\n return False\n return True", "def et8c(YKHO) -> bool:\n return len(YKHO.elements) == 1", "def npHX(XP5J):\n if not isinstance(XP5J, list):\n raise ValueError('A per...
[ "0.6626172", "0.6573984", "0.6466623", "0.6459016", "0.59154475", "0.584707", "0.5775967", "0.5728189", "0.56953317", "0.5654894", "0.56312656", "0.56158066", "0.55957276", "0.55319995", "0.5505085", "0.54915696", "0.5430177", "0.5418184", "0.5418093", "0.54101235", "0.540525...
0.6455453
4
Returns the positions of descents in a permutation, ie, the location where p[i] > p[i+1] Examples ======== >>> from sympy.combinatorics.permutations import Permutation >>> p = Permutation([4,0,1,3,2]) >>> p.descents() [0, 3] See Also ======== ascents, inversions, min, max
def tnDO(YKHO): jzdc = YKHO.array_form oeNL = [YRbF for YRbF in Ni9Y(len(jzdc) - 1) if jzdc[YRbF] > jzdc[YRbF + 1]] return oeNL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tnDO(YKHO, YlZG=None, vsK8=False):\n if YlZG == None:\n YlZG = YKHO.parent().index_set()\n return [YRbF for YRbF in YlZG if YKHO.has_descent(YRbF, vsK8)]", "def rH55(YKHO, QyVM, xtiX=None, pNDy=True):\n if not xtiX:\n xtiX = YKHO.indexes()\n if pNDy:\n return [tTFA(RwUt) for ...
[ "0.5839029", "0.5558416", "0.53199047", "0.52244025", "0.500037", "0.4827326", "0.47661033", "0.47643653", "0.47404474", "0.47339895", "0.47143736", "0.46777955", "0.46759987", "0.466451", "0.46167475", "0.45975444", "0.45554113", "0.45547083", "0.45358992", "0.452451", "0.45...
0.6667033
0
The maximum element moved by the permutation. Examples ======== >>> from sympy.combinatorics.permutations import Permutation >>> p = Permutation([1,0,2,3,4]) >>> p.max() 1 See Also ======== min, descents, ascents, inversions
def max(YKHO): max = 0 jzdc = YKHO.array_form for YRbF in Ni9Y(len(jzdc)): if jzdc[YRbF] != YRbF and jzdc[YRbF] > max: max = jzdc[YRbF] return max
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qfB5(YKHO):\n return YKHO.max[-1]", "def max(YKHO):\n assert YKHO.__stack\n return YKHO.__max_values[-1]", "def max(YKHO):\n return YKHO.__max", "def PtQX(YKHO):\n return max(YKHO.numbers)", "def qfB5(YKHO):\n if YKHO.right:\n return YKHO.right.get_max()\n return YKHO.value"...
[ "0.7760708", "0.7593996", "0.7488064", "0.74361163", "0.74210334", "0.74044496", "0.74013025", "0.74013025", "0.7396774", "0.73869574", "0.7357279", "0.73493344", "0.7346123", "0.7346123", "0.732503", "0.73080623", "0.72943455", "0.72727686", "0.7120369", "0.7110294", "0.7087...
0.77361
1
The minimum element moved by the permutation. Examples ======== >>> from sympy.combinatorics.permutations import Permutation >>> p = Permutation([0,1,4,3,2]) >>> p.min() 2 See Also ======== max, descents, ascents, inversions
def min(YKHO): jzdc = YKHO.array_form min = len(jzdc) for YRbF in Ni9Y(len(jzdc)): if jzdc[YRbF] != YRbF and jzdc[YRbF] < min: min = jzdc[YRbF] return min
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vELP(YKHO):\n return min(YKHO.numbers)", "def min(YKHO):\n return YKHO._reduce_for_stat_function(vuvg.min, only_numeric=False)", "def CL9V(YKHO):\n return YKHO.pointers[0].smallest()", "def min(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'min')", "def min(YKHO) -> qe4Y.Input[int]:\n ...
[ "0.750494", "0.73122925", "0.7308595", "0.72762966", "0.72762966", "0.72712666", "0.72495323", "0.72495323", "0.71233666", "0.70817524", "0.70769155", "0.7075571", "0.70591295", "0.70591295", "0.7054703", "0.6998952", "0.6998952", "0.6998473", "0.6971501", "0.6917875", "0.691...
0.74646544
1
Checks if the permutation is positive Examples ======== >>> from sympy.combinatorics import Permutation >>> Permutation([0, 1, 2]).is_Positive True See Also ======== is_Negative
def sQwW(YKHO): return YKHO.signature() > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YtOc(YKHO, jzdc):\n return jzdc > 0", "def _rLj(cZDQ):\n pass", "def YtOc(YKHO):\n return YKHO._num > 0", "def x9Kl(YKHO):\n return True", "def x9Kl(YKHO):\n return True", "def x9Kl(YKHO):\n return True", "def iHGU(XP5J: List[int]) -> bool:\n npHX(XP5J)\n for YRbF in range(l...
[ "0.68091965", "0.67505175", "0.67112964", "0.65012336", "0.65012336", "0.65012336", "0.6346707", "0.61876976", "0.6155681", "0.6145052", "0.60864043", "0.5925359", "0.58670163", "0.5864776", "0.5808227", "0.57996666", "0.57859373", "0.56885123", "0.5678387", "0.56660897", "0....
0.65420955
3
Computes the precedence distance between two permutations. Suppose p and p' represent n jobs. The precedence metric counts the number of times a job j is prededed by job i in both p and p'. This metric is commutative. Examples ======== >>> from sympy.combinatorics.permutations import Permutation >>> p = Permutation([2,...
def Jdaa(YKHO, Elif): if YKHO.size != Elif.size: raise ValueError('The permutations must be of the same size.') YMTC = YKHO.get_precedence_matrix() kqHT = Elif.get_precedence_matrix() HnCX = 0 for YRbF in Ni9Y(YKHO.size): for r845 in Ni9Y(YKHO.size): if YRbF == r845: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D0Sn(YKHO, EBgd, HpuQ):\n return sum([(EBgd[YRbF] - HpuQ[YRbF]) ** 2 for YRbF in range(2)])", "def AE5l(YKHO):\n YKHO._setup_precedence()\n if isinstance(YKHO._current_node, Qpo8):\n YKHO._add_parenthesis_around_part_of_componants(0, YKHO._end_current_group + 1)\n YKHO._compute_precede...
[ "0.56794924", "0.56321716", "0.56074905", "0.5540072", "0.5530909", "0.54615664", "0.5460272", "0.5458742", "0.5458742", "0.5428616", "0.5347637", "0.53364056", "0.5332343", "0.53320855", "0.53207064", "0.5309921", "0.52834636", "0.5273776", "0.5265109", "0.52485836", "0.5239...
0.79595035
0
Computes the positional distance between two permutations. Examples ======== >>> from sympy.combinatorics.permutations import Permutation >>> p = Permutation([0, 3, 1, 2, 4]) >>> q = Permutation.josephus(4, 5, 2) >>> r = Permutation([3, 1, 4, 0, 2]) >>> p.get_positional_distance(q) 12 >>> p.get_positional_distance(r) 1...
def K0xr(YKHO, Elif): jzdc = YKHO.array_form Fg_i = Elif.array_form if len(jzdc) != len(Fg_i): raise ValueError('The permutations must be of the same size.') return sum([abs(jzdc[YRbF] - Fg_i[YRbF]) for YRbF in Ni9Y(len(jzdc))])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D0Sn(EBgd, HpuQ):\n pImw = pEuX.norm(HpuQ - EBgd)\n return pImw", "def D0Sn(YKHO, EBgd, HpuQ):\n return sum([(EBgd[YRbF] - HpuQ[YRbF]) ** 2 for YRbF in range(2)])", "def ckaY(gwqK, yCTS):\n RA_F = oyIN.array(gwqK).astype(float).flatten() - oyIN.array(yCTS).astype(float).flatten()\n RA_F %= 1...
[ "0.66067207", "0.66018456", "0.65544814", "0.65434986", "0.65347785", "0.6522854", "0.6522854", "0.65157455", "0.6498043", "0.6460406", "0.6436375", "0.642424", "0.6419791", "0.64104456", "0.63993", "0.6386926", "0.6373464", "0.6373163", "0.63726175", "0.6350069", "0.6346437"...
0.7850794
0
Returns a FileDescriptorSet proto to be used by tf.io.decode_proto.
def fT4v(): mLim = TRdr.FileDescriptorSet() iUO4 = mLim.file.add(name=Ak16, package=ia3i, syntax='proto3') JtEM = iUO4.message_type.add(name=JAiv) JtEM.field.add(name=jg_a, number=1, type=TRdr.FieldDescriptorProto.TYPE_BYTES, label=TRdr.FieldDescriptorProto.LABEL_REPEATED) JtEM.field.add(name=axe3, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vbOa(YKHO) -> z2Rt:\n e5kH = LYve(created_timestamp=YKHO.created_timestamp, status=YKHO.status)\n Cqok = Hhxi(name=YKHO.name, project=YKHO.project, max_age=YKHO.max_age, labels=YKHO.labels, source=YKHO.source.to_proto() if YKHO.source is not None else None, features=[Jyyj.to_proto() for Jyyj in YKHO._fie...
[ "0.6655686", "0.64806414", "0.5870579", "0.55106497", "0.5424343", "0.5335488", "0.5291065", "0.52861184", "0.5221573", "0.52101123", "0.5198242", "0.5111702", "0.5082708", "0.5057119", "0.50536305", "0.50462496", "0.50195646", "0.5006837", "0.4996153", "0.49501193", "0.49459...
0.8356988
0
Parses SequenceExample to feature maps. The `FixedLenFeature` in `example_feature_spec` is converted to `FixedLenSequenceFeature` to parse `feature_list` in SequenceExample. We keep track of the nontrivial default_values (e.g., 1 for labels) for features in `example_feature_spec` and use them to replace the parsing def...
def hQr3(oAiD, sL7f=None, NbMa=None, qg1C=None, V7qb=None, mcXE=None, XDbD=False, yokr=None): wvEv = Yq4L(list_size=sL7f, context_feature_spec=NbMa, example_feature_spec=qg1C, size_feature_name=V7qb, mask_feature_name=mcXE, shuffle_examples=XDbD, seed=yokr) return wvEv.parse(oAiD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9Lq(_73Q: List[InputExample], EKkb: List[str], BcCR: int, b0j5: PreTrainedTokenizer, Lbvc=0, MaHk=False, YUWI=0, UW23=True) -> x1iM[NMrr]:\n ecF5 = {UXqs: YRbF for YRbF, UXqs in enumerate(EKkb)}\n bySB = []\n for ttfM, PU1l in PRqg.tqdm(enumerate(_73Q), desc='convert examples to features'):\n ...
[ "0.6380864", "0.6261056", "0.6210906", "0.61983395", "0.617306", "0.6169481", "0.6139974", "0.6139974", "0.61158013", "0.61137265", "0.6091876", "0.60900754", "0.60900515", "0.6084662", "0.60674435", "0.60544986", "0.60464865", "0.6025559", "0.6020386", "0.5998066", "0.599194...
0.6352493
1
Returns a `Dataset` of features from `SequenceExample`.
def ScOv(BuvW, Ep8u, sL7f, NbMa, qg1C, N5Pj=ZylS.data.TFRecordDataset, dp01=None, Zbwy=None, hXNa=True, NT8N=1000, rlnA=None, OXzk=32, Gaxg=10, gXYT=True, qcrB=False): return W3ni(BuvW, data_format=IXx8, batch_size=Ep8u, list_size=sL7f, context_feature_spec=NbMa, example_feature_spec=qg1C, reader=N5Pj, reader_args=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bySB(YKHO) -> gMbG.Features:\n return gMbG.Features({'sequence': gMbG.Value('string'), 'description': gMbG.Value('string'), 'id': gMbG.Value('string')})", "def _m4w(ZiEU, EvQg=True):\n if EvQg:\n yKcO = 0\n JCyR = 48000\n else:\n yKcO = 48000\n JCyR = 50000\n bySB = rL...
[ "0.65652615", "0.6440698", "0.61487615", "0.60766685", "0.60450655", "0.59644336", "0.5929399", "0.5922943", "0.59117806", "0.58371", "0.58305675", "0.5793195", "0.5760066", "0.5753719", "0.5740687", "0.5706553", "0.56776154", "0.5673357", "0.56687593", "0.5657515", "0.565682...
0.0
-1
Creates a serving_input_receiver_fn for `SequenceExample` inputs. A string placeholder is used for inputs. Note that the context_feature_spec and example_feature_spec shouldn't contain weights, labels or training only features in general.
def lxIe(zi3C, NbMa, qg1C, r1z5=None): return n7gE(IXx8, NbMa, qg1C, list_size=zi3C, receiver_name='sequence_example', default_batch_size=r1z5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K7R7():\n pbd_ = ZylS.placeholder(dtype=ZylS.string, shape=[None])\n SHFm = {'examples': pbd_}\n bySB = ZylS.parse_example(pbd_, ecqI)\n aWuw = bySB['sequence']\n pBY9 = ZylS.sparse_to_dense(aWuw.indices, aWuw.dense_shape, aWuw.values)\n NXmX = bySB['sequence_length']\n bySB = {'sentence':...
[ "0.7693126", "0.7576035", "0.7458408", "0.74262977", "0.7421002", "0.7314076", "0.72384566", "0.7165283", "0.71635693", "0.71107525", "0.700704", "0.70048624", "0.70022017", "0.6806134", "0.6771842", "0.67557734", "0.67035764", "0.66910076", "0.6482212", "0.63701385", "0.6350...
0.7394039
5
Parse function to convert `tf.train.Example` to feature maps.
def XN2B(oAiD, NbMa=None, qg1C=None, V7qb=None, mcXE=None): Ep8u = ZylS.shape(oAiD)[0] bySB = ZylS.io.parse_example(oAiD, features={**NbMa, **qg1C}) for d4YK, EYRd in qg1C.items(): if isinstance(EYRd, ZylS.io.RaggedFeature): bySB[d4YK] = ZylS.expand_dims(bySB[d4YK], axis=1) else:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H6sw(AIu6):\n bySB = {'terms': ZylS.VarLenFeature(dtype=ZylS.string), 'labels': ZylS.FixedLenFeature(shape=[1], dtype=ZylS.float32)}\n MeyO = ZylS.parse_single_example(AIu6, bySB)\n NHn2 = MeyO['terms'].values\n Crrw = MeyO['labels']\n return ({'terms': NHn2}, Crrw)", "def H6sw(xKOQ):\n Mey...
[ "0.7286557", "0.7192081", "0.71616954", "0.7040333", "0.70141315", "0.6961648", "0.6938032", "0.68541753", "0.68218017", "0.68170536", "0.6790918", "0.6768647", "0.67237645", "0.6707807", "0.668926", "0.6676268", "0.66687053", "0.66659963", "0.6665652", "0.66501856", "0.66208...
0.65566736
24
If `funcs` specified, apply them to each tile before merging.
def gyF5(PttE, aese=None): return oyIN.vstack([oyIN.hstack([Pusg(lambda YAq3, eHNT: eHNT(YAq3), aese, WKvO) if aese else WKvO for WKvO in rdlD]) for rdlD in PttE])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XwGX(aese, OxJJ):\n for eHNT in aese:\n OxJJ = map(eHNT, OxJJ)\n return OxJJ", "def capf(*aese):\n if not aese:\n return _E99\n\n def h3Xc(*qIxc, **B2fa):\n EgdX, *wOmD = aese\n U5bT = EgdX(*qIxc, **B2fa)\n for eHNT in wOmD:\n U5bT = eHNT(U5bT)\n ...
[ "0.60011554", "0.5787575", "0.5696854", "0.568793", "0.5611172", "0.55531746", "0.5549072", "0.5522566", "0.55186737", "0.5507669", "0.5499317", "0.54753375", "0.5439334", "0.5384896", "0.53775895", "0.5347689", "0.5312817", "0.53123355", "0.5260666", "0.52296597", "0.5203757...
0.7618011
0
Fill each tile with another array created by `fill_func`.
def soT3(PttE, TlyZ): return oyIN.array([[TlyZ(WKvO) for WKvO in rdlD] for rdlD in PttE])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LGJQ(YKHO, JfyU=lambda: tuKI().getdigits(1), A2lD=None):\n for LVAh, WKvO in YKHO.coords(A2lD):\n YKHO.store(LVAh, WKvO, JfyU())", "def LGJQ(YKHO, VjJw):\n for WKvO in range(YKHO.__xmax):\n for LVAh in range(YKHO.__ymax):\n YKHO.__data[WKvO, LVAh] = VjJw(WKvO, LVAh) % YKHO.mod"...
[ "0.6910671", "0.65624326", "0.6079739", "0.6048602", "0.60464525", "0.5909062", "0.58409363", "0.5798324", "0.57665217", "0.5718461", "0.5645002", "0.5631742", "0.5628187", "0.55924505", "0.55909234", "0.5547838", "0.5530588", "0.55177283", "0.5504256", "0.5483152", "0.547611...
0.8620867
0
Download a blob as bytes
def DPRZ(bD7m: str) -> xDSY.BytesIO: ntiA = S8SU.Client() l7rj = h47C(bD7m) JC20 = qLGs(bD7m) WE7e = ntiA.bucket(l7rj) vxw0 = WE7e.blob(JC20) eHNT = xDSY.BytesIO(vxw0.download_as_bytes()) return eHNT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KX47(NOKg):\n vxw0 = S8SU.Object.from_url(NOKg)\n mx0y = vxw0.download()\n return mx0y", "def FTlF(YKHO, cdaG):\n WqHM = cdaG['blob_id']\n if isinstance(WqHM, str):\n WqHM = qxeD.UUID(WqHM)\n cuiw = YKHO.DBSession()\n vxw0 = cuiw.get(vWSL, WqHM)\n return vxw0.data", "def TnZ4...
[ "0.77642393", "0.721828", "0.71933115", "0.70745903", "0.7056861", "0.69814175", "0.6867125", "0.6847257", "0.6825369", "0.6812353", "0.67706835", "0.6651771", "0.6594487", "0.6589651", "0.6537228", "0.6502545", "0.6466667", "0.64162225", "0.6412126", "0.6369801", "0.6357196"...
0.75308365
1
Returns a string representing the platform this build is targetted for.
def a9EH(): if 'OS' in Ozv8(): if 'android' in Ozv8()['OS']: return 'android' else: return Ozv8()['OS'] elif Njvv(): return 'win' elif jWLO(): return 'linux' else: return 'mac'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a9EH(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'platform')", "def a9EH(YKHO):\n return YKHO._platform", "def QzwJ():\n Oz1B = a9EH.system()\n if 'Darwin' in Oz1B or 'Macintosh' in Oz1B:\n return 'darwin-x86'\n return 'linux-x86'", "def a9EH():\n return 'micaz'", "def a...
[ "0.8346893", "0.815772", "0.7967567", "0.792701", "0.79067993", "0.7898727", "0.78434443", "0.7751172", "0.7712779", "0.759612", "0.7587226", "0.7560863", "0.75583434", "0.75551844", "0.7545541", "0.751422", "0.7362841", "0.73149467", "0.72781867", "0.7273031", "0.7269034", ...
0.78414303
7
Returns the kind of the named identifier in the current scope. If the identifier is unknown in the current scope, returns None.
def mbnd(YKHO, C7ck): if C7ck in YKHO.subroutineTable: SjLr = YKHO.subroutineTable[C7ck] elif C7ck in YKHO.classTable: SjLr = YKHO.classTable[C7ck] else: return None if YKHO.DEBUG: print("DEBUG(SymbolTable): KIND OF '{}': {}".format(C7ck, SjLr[1])) return SjLr[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eJTR(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'kind')", "def eJTR(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'kind')", "def eJTR(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'kind')", "def eJTR(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'kind')", "def vXL0(Csk6):\n return V7qc.get(Cs...
[ "0.64919865", "0.64919865", "0.64919865", "0.64919865", "0.6396671", "0.63650405", "0.62592405", "0.62409407", "0.6203032", "0.61427164", "0.61427164", "0.61427164", "0.6121663", "0.6121663", "0.6121663", "0.6121663", "0.6121663", "0.6121663", "0.6121663", "0.6121663", "0.612...
0.6364982
6
Use the management API to declare a queue.
def YtN8(YKHO, Z9rn, Q64Y): return YKHO._management_req(Z9rn, 'PUT', ['queues', A5Qt(Z9rn.vhost, safe=''), Q64Y], {'auto_delete': False, 'durable': False, 'arguments': {}})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YtN8(YKHO):\n YKHO._channel.queue_declare(queue=YKHO._queue_name, durable=True)\n print('Queue declared....')", "def ljvn(YKHO, YwkQ, Q64Y):\n bo34.info('Declaring queue %s', Q64Y)\n YwkQ.queue_declare(queue=Q64Y, durable=True, auto_delete=False)", "def ljvn(YKHO):\n YKHO.logger.info('declar...
[ "0.81214935", "0.7631336", "0.7544795", "0.7427591", "0.7355256", "0.72456235", "0.7244864", "0.6941235", "0.688709", "0.68756276", "0.68676907", "0.6821677", "0.6809824", "0.6805658", "0.663481", "0.65823704", "0.65740746", "0.6549895", "0.6549895", "0.6549895", "0.6543707",...
0.77669483
1
Return theta and J_history
def eFKG(YKHO, EcVT, LVAh, q7In): r8hN = len(LVAh) zFaq = oyIN.zeros((YKHO.NUM_ITERS, 1)) for YRbF in range(YKHO.NUM_ITERS): MKlR = YKHO.sigmoid(EcVT @ q7In) Ro40 = 1 / r8hN * EcVT.T @ (MKlR - LVAh) q7In = q7In - YKHO.ALPHA * Ro40 zFaq[YRbF] = YKHO.costFunction(q7In, EcVT, LV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oa10(q7In, WKvO, LVAh):\n r8hN = len(LVAh)\n epBp = q7In.dot(WKvO.T)\n return 1.0 / r8hN * oyIN.sum(-LVAh * oyIN.log(Oa1e(epBp)) - (1.0 - LVAh) * oyIN.log(1 - Oa1e(epBp)))", "def q7In():\n pass", "def q7In(YKHO):\n jbXL = [YKHO._get_one_param_theta(XP5J) for XP5J in YKHO._LIST_PARAMETERS]\n ...
[ "0.6950735", "0.6649922", "0.6543228", "0.6485027", "0.6258811", "0.6219147", "0.6184788", "0.6184788", "0.6170629", "0.6163561", "0.6107435", "0.60741055", "0.6054163", "0.6038025", "0.6021765", "0.6021255", "0.601556", "0.59481984", "0.5943052", "0.59357226", "0.5897428", ...
0.6488257
3
Set is_space if current token is whitespace
def uRZU(YKHO): BWXx = YKHO.current.value if BWXx == '\n': YKHO.is_space = True else: YKHO.is_space = False if BWXx == '' or tHUN['whitespace'].match(BWXx): YKHO.is_space = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yi20(YKHO):\n return YKHO.pos == YKHO.SPACE_POS", "def i05p(l5Ny, eOtH):\n if eOtH in ['*'] and (not l5Ny or l5Ny.endswith((' ', '('))):\n return eOtH\n if _J2v.isoperator(eOtH) or _J2v.islogicseparator(eOtH) or eOtH.lower() in ['in']:\n return f' {eOtH} ' if not l5Ny.endswith(' ') els...
[ "0.7020219", "0.6986494", "0.6700453", "0.6649125", "0.66462475", "0.65734935", "0.6543672", "0.6492766", "0.6431927", "0.6406948", "0.6397717", "0.6277612", "0.6238498", "0.6217519", "0.6142976", "0.60928607", "0.60779923", "0.6073988", "0.60397017", "0.59851426", "0.5915279...
0.802504
0
Verifies the behaviour of mute on an alert when the same alert is generated again
def LyHn(Q6kx: CephAdmin, N2WC: str, **B2fa) -> bool: if N2WC == 'OSDMAP_FLAGS': Jyyn = B2fa.get('sticky') if not EYyv(node=Q6kx, alert=N2WC, flag='noscrub', sticky=Jyyn): RKD7.error(f'Alert : {N2WC} is not Muted') return False if not Bvyg(alert=N2WC, node=Q6kx, flag=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KkzS(YKHO, tO9_, qIxc):\n if YKHO.mute:\n YKHO.mute = False\n return 'Yay, I can make noise again!'\n else:\n YKHO.mute = True\n return \"OK, I'll shut up now!\"", "async def test_cache_miss_sent_mod_alert_voice(YKHO):\n YKHO.cog.previous_overwrites.get.return_value = Non...
[ "0.70042527", "0.6958718", "0.69161993", "0.69100916", "0.65937746", "0.6590511", "0.6373651", "0.6186105", "0.6183723", "0.6132045", "0.612756", "0.6081112", "0.60577506", "0.6056941", "0.60190994", "0.601786", "0.5989709", "0.59725064", "0.5924046", "0.5922763", "0.58866143...
0.7354837
0
Remove stop words and lemmatize input.
def wryy(WbAn: List[ArticleInfoStemmed]) -> x1iM[lufs]: hwHU = di0c.words('russian') hwHU.extend(['что', 'это', 'так', 'вот', 'быть', 'как', 'в', 'к', 'на']) OzU9 = alQE() Aofo = [] for LihS in WbAn: fhJl = ' '.join([T2oi for T2oi in LihS.title.split(' ') if T2oi not in hwHU and T2oi not in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def quyD(l5Ny):\n s2mk = s7oB(l5Ny)\n s2mk = M48Q(s2mk)\n l_7H = ['ESPN', 'espn', 'foxsports', 'fox', 'cnn', 'yahoo', '•', '-', '●']\n wUfe = [G1Hx for G1Hx in s2mk if not G1Hx in l_7H]\n return wUfe", "def ZTc5(l5Ny):\n NRmQ = Dhdw.stem.WordNetLemmatizer()\n di0c = di0c.words('english') + N...
[ "0.7799866", "0.7562857", "0.740089", "0.72312415", "0.72265565", "0.71447855", "0.6998881", "0.6850866", "0.6842619", "0.68289655", "0.6802723", "0.67786384", "0.6777514", "0.67430836", "0.67257583", "0.6722361", "0.6711797", "0.6710667", "0.67049855", "0.6704398", "0.670088...
0.6212129
96
Wildcard chars are everywhere, and there are multiple literals.
def mDwN(YKHO): umWR = '"Fo?" s* "yes*" o?' dbxN, DwPX = Zxbw(umWR) YKHO.assertEqual(dbxN, '"Fo\\?" s* "yes\\*" o?', 'Wildcards in literal should be escaped') YKHO.assertTrue(DwPX, 'Wildcard should be detected') YKHO.assertIsInstance(lQvO('match', 'title', umWR), type(d6pt.Q('wildcard', title='"Fo\\...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sfE7(YKHO):\n umWR = '\"Fo*o t*\"'\n dbxN, DwPX = Zxbw(umWR)\n YKHO.assertEqual(dbxN, '\"Fo\\\\*o t\\\\*\"', 'Both wildcards should be escaped')\n YKHO.assertFalse(DwPX, 'Wildcard should not be detected')\n YKHO.assertIsInstance(lQvO('match', 'title', umWR), type(d6pt.Q('match', title='\"Fo\\\\*...
[ "0.70266396", "0.70098746", "0.6959173", "0.694705", "0.6430979", "0.6355583", "0.63458925", "0.6161441", "0.59570634", "0.59240246", "0.58363456", "0.57723093", "0.5754214", "0.5735046", "0.5713353", "0.57045794", "0.5677222", "0.56439114", "0.5615413", "0.56148857", "0.5610...
0.68952394
4
Return whether there are changes staged in the index.
def GFFp(boHx): return Yn3K.call(['git', 'diff-index', '--cached', '--quiet', 'HEAD'], cwd=boHx) != 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pxxl(YKHO):\n if YKHO.repo_is_empty:\n return True\n J_Es = YKHO.repo.get(YKHO.index.write_tree(YKHO.repo))\n yk4i = J_Es.diff_to_tree(YKHO.repo.get(YKHO.repo.head.target).tree)\n return bool(yk4i)", "def BSpA():\n Aofo, hlel = Slaj('git diff --cached', False, False)\n return len(hle...
[ "0.78240436", "0.7427147", "0.7259371", "0.7247766", "0.7033398", "0.68701726", "0.6775976", "0.66627145", "0.66391957", "0.66156906", "0.6578035", "0.6491765", "0.6476037", "0.6469735", "0.6431343", "0.6426879", "0.6412966", "0.6394874", "0.63894445", "0.6388647", "0.6380831...
0.75188035
1
Return whether there are unstaged changes in the working tree.
def QiVE(boHx): Yn3K.check_call(['git', 'update-index', '-q', '--ignore-submodules', '--refresh'], cwd=boHx) return Yn3K.call(['git', 'diff-index', '--quiet', 'HEAD'], cwd=boHx) != 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rr16(YKHO):\n pass", "def GFFp(boHx):\n return Yn3K.call(['git', 'diff-index', '--cached', '--quiet', 'HEAD'], cwd=boHx) != 0", "def z2py():\n Aofo, hlel = Slaj('git status', False, False)\n try:\n return not hlel[-1].startswith('nothing to commit')\n except IndexError:\n retur...
[ "0.8172257", "0.74224067", "0.7179171", "0.7160259", "0.7136172", "0.71034104", "0.7068434", "0.70023155", "0.70009446", "0.6953707", "0.69295585", "0.6915011", "0.6841017", "0.6674257", "0.6667745", "0.6646031", "0.6569326", "0.65209794", "0.6464198", "0.643293", "0.6412829"...
0.8190848
0
Return the ARN of the IAM Role on the provided account as a string. Returns an `IAMRole` object from boto3
def gQDq(YKHO, ZrNc): try: ENHu = YKHO.session.client('iam') VBFD = ENHu.get_role(RoleName=YKHO.role_name)['Role']['Arn'] return VBFD except nheh as e: if tTpl.response['Error']['Code'] == 'NoSuchEntity': YKHO.create_iam_role(ZrNc) else: raise ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c44t(YKHO, LmAn, Qrt_='aws'):\n if not LmAn or LmAn.startswith('arn:aws'):\n return LmAn\n if not LmAn.startswith('role/'):\n LmAn = 'role/' + LmAn\n return 'arn:{0}:iam::{1}:{2}'.format(Qrt_, YKHO.account_id, LmAn)", "def TJ5u(ENHu, qcx6):\n return ENHu.get_role(RoleName=qcx6)['Rol...
[ "0.7615182", "0.68969595", "0.68490857", "0.67595655", "0.6699634", "0.66625166", "0.66314983", "0.6564157", "0.65151244", "0.65151244", "0.65151244", "0.65151244", "0.6453544", "0.6453544", "0.638315", "0.6204257", "0.6204257", "0.61953646", "0.61953646", "0.61840516", "0.60...
0.6416746
14
Returns an int64_list from a bool / enum / int / uint.
def Oety(BWXx): return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo", ...
[ "0.68819815", "0.659524", "0.6460672", "0.64474607", "0.6367618", "0.6291482", "0.6270116", "0.6216924", "0.6101936", "0.59520674", "0.59475744", "0.5902947", "0.5865389", "0.5865389", "0.5855006", "0.5845118", "0.58441347", "0.58316153", "0.5802565", "0.57950443", "0.5795044...
0.54260087
71
Clean all graphical objects, remove from sprite dictionary and remove the game reference
def lMGV(YKHO, ilYP=False): YKHO.image = None YKHO.animated = False if hasattr(YKHO, 'dict_image'): delattr(YKHO, 'dict_image') if hasattr(YKHO, 'list_image'): YKHO.list_image = None delattr(YKHO, 'list_image')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FDYW(YKHO):\n YKHO.game_objects = list()\n YKHO.colliders = list()", "def TO83(YKHO):\n for YEnM in YKHO.objects:\n YKHO.scene.removeItem(YEnM)\n for xIuV in YKHO.plants:\n YKHO.scene.removeItem(xIuV)\n for eL5z in YKHO.tiles:\n eL5z.unload()\n YKHO.scene.removeItem...
[ "0.7206723", "0.718348", "0.7134893", "0.7049908", "0.7022351", "0.7010834", "0.6991802", "0.6920527", "0.6840245", "0.6783653", "0.6733267", "0.6729808", "0.672947", "0.672154", "0.6717521", "0.66974646", "0.661839", "0.6588763", "0.6565614", "0.6559923", "0.65361184", "0....
0.0
-1
Calculate the Haversine distance in meters.
def Ayfi(hLRM: Tuple[float, float], yFgu: Tuple[float, float]) -> float: r1VO = 6372797.560856 igSk, GgQG, TGuP, tk0B = map(epAf.radians, [hLRM[0], hLRM[1], yFgu[0], yFgu[1]]) H91H = tk0B - GgQG n_9K = TGuP - igSk jzdc = epAf.sin(n_9K / 2) ** 2 + epAf.cos(igSk) * epAf.cos(TGuP) * epAf.sin(H91H / 2) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GeVo(GgQG, igSk, tk0B, TGuP):\n GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2\n Z9rn = 2 * Gqkf(PZyS(jzdc) / PZyS(1 - jzdc))\n Mkmy = 6371\n Csk6 = Z9rn * M...
[ "0.717295", "0.71524125", "0.71517825", "0.7074592", "0.7012661", "0.70119554", "0.69689655", "0.69665873", "0.6943535", "0.6943336", "0.6930834", "0.69140434", "0.68999726", "0.68669325", "0.685067", "0.6838337", "0.6829331", "0.68217", "0.6817715", "0.679323", "0.6791806", ...
0.0
-1
This model implements a Kalman filter over a time series. The key method is `KalmanFilter.filter()`. It considers the provided time series as containing (possibly noisy) observations z obtained from a (possibly noisy) linear dynamical system with hidden state x. The function `filter(series)` returns a new `TimeSeries` ...
def FIMM(YKHO, vwEp: int=1, C8pr: Optional[Kalman]=None): super().__init__() if C8pr is None: YKHO.kf = None YKHO.dim_x = vwEp YKHO._kf_provided = False else: YKHO.kf = C8pr YKHO.dim_u = C8pr.state_space.u_dim YKHO.dim_x = C8pr.state_space.x_dim YKHO.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(YKHO, dy_H: TimeSeries, KTV5: Optional[TimeSeries]=None, eAYh: int=1) -> YXTX:\n super().filter(dy_H)\n PEeS(YKHO.kf is None, 'The Kalman filter has not been fitted yet. Call `fit()` first or provide Kalman filter in constructor.')\n i_Sf(dy_H.width == YKHO.dim_y, 'The provided TimeSeries dimen...
[ "0.7776398", "0.67010283", "0.6458076", "0.63149166", "0.6137373", "0.6130053", "0.60871553", "0.60769624", "0.5968232", "0.5745265", "0.563601", "0.5617688", "0.5577299", "0.5537823", "0.55330664", "0.5520145", "0.5485191", "0.54678595", "0.5464964", "0.54608214", "0.5459638...
0.0
-1
Sequentially applies the Kalman filter on the provided series of observations.
def filter(YKHO, dy_H: TimeSeries, KTV5: Optional[TimeSeries]=None, eAYh: int=1) -> YXTX: super().filter(dy_H) PEeS(YKHO.kf is None, 'The Kalman filter has not been fitted yet. Call `fit()` first or provide Kalman filter in constructor.') i_Sf(dy_H.width == YKHO.dim_y, 'The provided TimeSeries dimensionalit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cky0(mvm2, Vb5F=25):\n LudG = len(mvm2)\n sequ = []\n pR3T = oyIN.ma.array(mvm2, mask=oyIN.zeros(mvm2.shape))\n LLJd = oyIN.where(oyIN.isnan(mvm2))\n pR3T[LLJd[0][:], LLJd[1][:]] = oyIN.ma.masked\n JRYC = 1.0 / 25\n LudG = len(mvm2)\n mCLV = oyIN.array([[1, 0, 0, 0], [0, 1, 0, 0]])\n ...
[ "0.6253877", "0.62128437", "0.6187326", "0.6127671", "0.6050993", "0.59781045", "0.5972726", "0.5739453", "0.56927985", "0.5654467", "0.56153286", "0.55797", "0.55774987", "0.5572194", "0.5557671", "0.55040103", "0.5416595", "0.54071057", "0.5348931", "0.5315805", "0.5303385"...
0.67902356
0
return tuple representing bounding box of reverse geocoder with form (left, bottom, right, top)
def X7zS(YKHO): return YKHO.osmdb.bounds()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JcC1(YKHO):\n FDPT, QnmL = YKHO.coordinates\n CLNC = (oyIN.min(FDPT), oyIN.min(QnmL))\n d2DU = (oyIN.min(FDPT), oyIN.max(QnmL))\n r902 = (oyIN.max(FDPT), oyIN.max(QnmL))\n tspZ = (oyIN.max(FDPT), oyIN.min(QnmL))\n return (CLNC, d2DU, r902, tspZ)", "def C1GJ(YKHO):\n JQRm = YKHO.ij_to_lat...
[ "0.781958", "0.7549841", "0.75235707", "0.7443732", "0.7404683", "0.72664326", "0.72664326", "0.71939343", "0.7106945", "0.7090425", "0.7067621", "0.70609933", "0.7057045", "0.7049618", "0.70485306", "0.70354766", "0.69361347", "0.69171494", "0.6901337", "0.6885634", "0.68573...
0.0
-1
Compare two index properties for equality.
def xa14(YKHO, Elif): if not isinstance(Elif, FM54): return NotImplemented return YKHO.name == Elif.name and YKHO.direction == Elif.direction
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return YKHO.name == Elif.name and YKHO.index_type == Elif.index_type and (YKHO.hash_key == Elif.hash_key) and (YKHO.range_key == Elif.range_key) and (YKHO.read_throughput == Elif.read_throughput) and (YKHO.write_throughput == Elif.write_throughput) and (YKHO.includes == Elif.includes)", ...
[ "0.73820996", "0.7007457", "0.6649975", "0.65558517", "0.6508119", "0.64641464", "0.64640576", "0.62937516", "0.6244109", "0.6224224", "0.6140386", "0.6113254", "0.60249746", "0.59961665", "0.59827787", "0.59800756", "0.59538686", "0.5945407", "0.5930792", "0.59278286", "0.59...
0.7806691
0
Return the kind name for this class. This defaults to ``cls.__name__``; users may override this to give a class a different name when stored in Google Cloud Datastore than the name of the class.
def Y5M9(Emd4): return Emd4.__name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(Emd4) -> str:\n return Emd4.__name__", "def eJTR(Emd4):\n return Emd4.__name__", "def mWFP(Emd4) -> str:\n return Emd4.__name__", "def _2sc(Emd4):\n return Emd4.__name__", "def _2sc(Emd4):\n return Emd4.__name__", "def uSWv(Emd4):\n return Emd4.__name__", "def mPQc(Emd4):\n ...
[ "0.7942168", "0.78967655", "0.7862698", "0.77933", "0.77933", "0.77606165", "0.7730739", "0.77014863", "0.7691594", "0.76342505", "0.759643", "0.7578216", "0.7471605", "0.74112463", "0.73953176", "0.73832285", "0.7232317", "0.7232317", "0.718681", "0.7183165", "0.71638846", ...
0.78269374
3
Only call this with the criticallydamped DSc model as argument. Defaults to black line plot.
def x6o3(PY54, hDUX, fvDH='k'): n2Q1 = 5 dr9L = qIxc(pars={'S': 0, 'x0': 35}, tdur=n2Q1) SpII = 100 jQV2 = qIxc(pars={'S': 0, 'x0': hDUX}, tdur=SpII) ez5h, cjtL = iXWO(K_eS, [dr9L, jQV2]) wNVz(cjtL, fvDH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj9G(YKHO):\n YKHO.plotOfSpect().plot()", "def kj9G(YKHO):\n YKHO.plotOfSpect()", "def pLe6(YKHO):\n QrM1.figure(figsize=[10, 5])\n QrM1.scatter(YKHO.receivers['recxs'], YKHO.receivers['reczs'], marker='v')\n if YKHO.source['src_type'] == 4:\n from obspy.imaging.beachball import beach...
[ "0.54804933", "0.54780096", "0.5397993", "0.53640574", "0.5335361", "0.53308004", "0.5259872", "0.5225873", "0.52149063", "0.51742977", "0.5129519", "0.512896", "0.51285034", "0.512037", "0.5098921", "0.508121", "0.5077731", "0.5073066", "0.50707966", "0.5065889", "0.5051925"...
0.55046964
0
Executes the setLoggingLevel operation on the server. setLoggingLevel(Arg1=enum, async_operation=bool)
def LfJV(YKHO, *qIxc, **B2fa): pB3N = {} for YRbF in range(len(qIxc)): pB3N['Arg%s' % (YRbF + 1)] = qIxc[YRbF] for ZfUD in B2fa.items(): pB3N[ZfUD[0]] = ZfUD[1] return YKHO._execute('setLoggingLevel', payload=pB3N, response_object=None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def set_log_level(YKHO, wiAm: str) -> None:\n await YKHO._send_message_get_response(A9S_(ZqGo.set_log_level, log_level=wiAm))", "def f8MA(YKHO, ABDL):\n return YKHO.sdk.set_logging_level(ABDL, prefix=YKHO.__class__.__name__)", "def aQ22(YKHO, ABDL):\n if ABDL == 'info':\n ABDL = G9jH.INFO...
[ "0.7192378", "0.70032954", "0.6776787", "0.6764134", "0.66718197", "0.6669104", "0.66436124", "0.6639818", "0.6595389", "0.65719914", "0.6512226", "0.6486954", "0.64375776", "0.64276475", "0.64275664", "0.6395008", "0.6384189", "0.63814825", "0.63629377", "0.6347836", "0.6310...
0.6866034
2
Return structure with defaulted metadata values required for a NWBFile. These standard defaults are metadata["NWBFile"]["session_description"] = "no description" metadata["NWBFile"]["identifier"] = str(uuid.uuid4()) Proper conversions should override these fields prior to calling NWBConverter.run_conversion()
def bRsF() -> xCCT: yIVm = xCCT() yIVm['NWBFile'].deep_update(session_description='no description', identifier=str(qxeD.uuid4())) return yIVm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t6Fa(yIVm: dict) -> zoRr:\n IR_9 = GkAb(xAKo).resolve().parent.parent / 'schemas/base_metadata_schema.json'\n s28Y = rFat(file_path=IR_9)\n m1iM(metadata=yIVm, schema=s28Y)\n GCl8 = yIVm['NWBFile']\n if isinstance(GCl8.get('session_start_time'), str):\n GCl8['session_start_time'] = qcWV.f...
[ "0.7001911", "0.68060946", "0.66537225", "0.64992124", "0.6379478", "0.62738776", "0.6186642", "0.6151457", "0.6092115", "0.59207845", "0.5897244", "0.58177525", "0.5812387", "0.57986695", "0.5797827", "0.57847816", "0.57538414", "0.5723986", "0.56995463", "0.56913435", "0.56...
0.8653975
0
Create and save an ordinary user with the given email, name and password.
def lYUQ(YKHO, D3lj, mWFP, jTXt, **wdCM): wdCM.setdefault('role', mv1M.ROLE_USER) wdCM.setdefault('is_superuser', False) return YKHO._create_user(D3lj, mWFP, jTXt, **wdCM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYUQ(YKHO, mWFP, D3lj, jTXt):\n Q5YQ = mv1M(name=mWFP, email=D3lj, password=jTXt)\n NCls.session.add(Q5YQ)\n NCls.session.commit()", "def xWi2(YKHO, NtEF, mWFP, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('Email field is required')\n D3lj = YKHO.normalize_email(D3lj)\n CBI...
[ "0.83235365", "0.8266425", "0.82039505", "0.8174819", "0.8172768", "0.81646734", "0.8153281", "0.8148734", "0.8126452", "0.81213474", "0.8120301", "0.8108491", "0.81023", "0.8098179", "0.8075773", "0.80615765", "0.80573696", "0.8044561", "0.80385953", "0.80296576", "0.802952"...
0.78047603
91
Create and save a superuser with the given email, name and password.
def Zp54(YKHO, D3lj, mWFP, jTXt, **wdCM): wdCM.setdefault('role', mv1M.ROLE_ADMIN) wdCM.setdefault('is_superuser', True) wdCM.setdefault('is_staff', True) if wdCM.get('is_superuser') is not True: raise ValueError('Superuser must have is_superuser=True.') return YKHO._create_user(D3lj, mWFP, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, D3lj, mWFP, jTXt):\n CBIr = YKHO.create_user(D3lj, mWFP, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save(using=YKHO._db)\n return CBIr", "def HvMu():\n D3lj = idDS('User E-Mail')\n JAPf = idDS('Confirm E-Mail')\n if not D3lj == JAPf:\n HwRy.exit('...
[ "0.83064646", "0.82670945", "0.82389", "0.822481", "0.82135373", "0.8186731", "0.8184222", "0.81648266", "0.8155606", "0.81546015", "0.81458473", "0.81458473", "0.81307507", "0.81181186", "0.8099987", "0.8099177", "0.80884", "0.8088027", "0.80774003", "0.8067301", "0.8065221"...
0.81532604
10
Return the user's email
def dsRp(YKHO): return YKHO.email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bzh1(YKHO):\n mS46 = YKHO.get_user()\n if mS46:\n return mS46.getProperty('email')", "def cHyp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'user_email')", "def RC0X(YEnM):\n return YEnM.user.email", "def D3lj(YKHO, KAOR):\n return KAOR.user.email", "def N2Ic(YKHO):\n ret...
[ "0.89156574", "0.8576969", "0.8501789", "0.8455517", "0.8452494", "0.8345917", "0.81268835", "0.8081051", "0.80751437", "0.80625206", "0.80039424", "0.80039424", "0.80039424", "0.7972809", "0.79432976", "0.7919716", "0.7894168", "0.7886542", "0.78460133", "0.78448176", "0.784...
0.71760446
58
Takes a vector and returns it's unit vector
def u1KP(iArr): if oyIN.sum(iArr) == 0: return iArr return iArr / oyIN.linalg.norm(iArr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aHVb(iArr):\n return iArr / oyIN.linalg.norm(iArr)", "def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)", "def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)", "def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)", "def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)", "...
[ "0.8847675", "0.8827156", "0.8827156", "0.8827156", "0.8809197", "0.8809197", "0.8809197", "0.8809197", "0.8809197", "0.8809197", "0.8809197", "0.8809197", "0.8809197", "0.8809197", "0.8809197", "0.87835234", "0.8763117", "0.87047213", "0.8642639", "0.85598093", "0.8505708", ...
0.67854637
58
Normalizes Vectors of an numpy.ndarray of shape (1, n)
def wLKn(F7BS): vXfG = oyIN.linalg.norm(F7BS, axis=1) vXfG = oyIN.where(vXfG == 0, 1, vXfG) return F7BS / vXfG.reshape(-1, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO):\n YKHO.vector /= oyIN.linalg.norm(YKHO.vector)", "def VDTB(WKvO):\n FOSW = epAf.sqrt(QLUs(WKvO, WKvO))\n return [float(YRbF) / FOSW for YRbF in WKvO]", "def NkkI(Ty9i):\n tpio = Ty9i.shape\n for YRbF in range(0, tpio[0] - 1):\n Ty9i[YRbF, :, :] = (Ty9i[YRbF, :, :].T / oyIN...
[ "0.72583866", "0.72463936", "0.7211733", "0.72110134", "0.71922225", "0.7186948", "0.718182", "0.7180445", "0.71580994", "0.71496916", "0.713165", "0.71000606", "0.7058011", "0.70440507", "0.70421475", "0.70400274", "0.6962223", "0.6956507", "0.6936452", "0.69357705", "0.6925...
0.71217793
11
From the points of the given point cloud, this function derives a plane defined by a normal vector and the noise of the given point cloud in respect to this plane.
def EHUa(R5uQ): if R5uQ.shape[0] == 0: return (oyIN.array((0, 0, 0)), 1.0, oyIN.array((0, 0, 0))) R5uQ = R5uQ[:, :3].copy() MNAg = R5uQ.shape[0] LPi_, HEdf = chJo(R5uQ) XGpy, Mw4o = ubtv(LPi_) ARTs = Mw4o if MNAg <= 3 or ARTs < 1 * 10 ** (-10): WTkW = ARTs else: W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ioyJ(HFMc: NDArrayFloat) -> AzJI[float, float, float, float]:\n jICT: mV7i = oyIN.mean(HFMc, axis=0)\n yvT9: AzJI[mV7i, mV7i, mV7i] = oyIN.linalg.svd(HFMc - jICT)\n fHKj = yvT9[2]\n jzdc, Fg_i, Z9rn = (float(fHKj[2, 0]), float(fHKj[2, 1]), float(fHKj[2, 2]))\n Csk6: float = -oyIN.dot([jzdc, Fg_i...
[ "0.6580144", "0.63780445", "0.63138264", "0.62746537", "0.6177512", "0.61291873", "0.6109093", "0.60267746", "0.59768504", "0.59131163", "0.5872911", "0.5853883", "0.5835957", "0.58269656", "0.58189553", "0.5813077", "0.57806265", "0.57600707", "0.5745201", "0.5717565", "0.57...
0.0
-1
Uses Ransac with the probability parameters w and z to estimate a valid plane in given cloud. Uses distance from plane compared to given threshold to determine the consensus set. Returns points and normal vector of the detected plane.
def B_JI(R5uQ, gwAu, o3rF=None, yzQ0=0.9, epBp=0.95): cDdI = 0 u27o = 0 Mwsr = oyIN.array([]) u5Dq = oyIN.array([]) Fg_i = oyIN.float_power(yzQ0, 3) G1Hx = lO1m(oyIN.log(1 - epBp) / oyIN.log(1 - Fg_i)) R5uQ = R5uQ[:, 0:3].copy() yvNB, OEql = EBt8(R5uQ, G1Hx * 3, o3rF) for XGpy, Csk6 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiuB(tH0x: object, knl1: int, KjSY: int) -> AzJI[object, object]:\n h50j, PAVO = tH0x.segment_plane(distance_threshold=knl1, ransac_n=3, num_iterations=KjSY)\n a53J = tH0x.select_by_index(PAVO)\n iUnF = tH0x.select_by_index(PAVO, invert=True)\n return (a53J, iUnF)", "def TSEw(bTKY):\n jzdc, Fg...
[ "0.6371048", "0.62168926", "0.61706877", "0.60739213", "0.5938027", "0.5844546", "0.5790194", "0.57716024", "0.57679754", "0.57642746", "0.5713132", "0.569902", "0.56792825", "0.5623892", "0.5574627", "0.5574627", "0.55611265", "0.55504286", "0.5529408", "0.5528072", "0.55267...
0.81879735
0
return the unicode representation of obj
def psdK(YEnM, *qIxc): try: return QMSQ(YEnM, *qIxc) except UnicodeDecodeError: iJIb = str(YEnM).encode('string_escape') return QMSQ(iJIb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P6bq(YEnM):\n return YEnM if isinstance(YEnM, QMSQ) else QMSQ(YEnM)", "def P6bq(YEnM):\n return YEnM if isinstance(YEnM, str) else str(YEnM)", "def xx_o(YKHO, YEnM):\n return QMSQ(YEnM)", "def zX3X(YEnM):\n if HwRy.version_info.major < 3 and isinstance(YEnM, str):\n YEnM = YEnM.decode(...
[ "0.8203075", "0.7992205", "0.797343", "0.79137915", "0.7886161", "0.7804273", "0.769004", "0.7639067", "0.7570535", "0.75103855", "0.75103855", "0.7428463", "0.7394372", "0.7372737", "0.73335004", "0.7299523", "0.7290797", "0.72396266", "0.7239328", "0.7216154", "0.7149755", ...
0.74312717
15
reset weight and bias
def Q0Ko(YKHO): vRNf.truncated_normal_(YKHO.weight, mean=0.0, std=0.1) vRNf.truncated_normal_(YKHO.bias, mean=0.0, std=0.1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UMkV(YKHO):\n YKHO._weights = _qLf(YKHO._tmp_weights)\n YKHO._tmp_weights = None", "def UMkV(YKHO):\n YKHO.head.reset_weights()", "def SiRx(YKHO):\n YKHO._weights.clear()", "def SiRx(YKHO):\n Rqdx = (xqoZ for mWFP, xqoZ in YKHO.named_parameters() if 'weight_ih' in mWFP)\n TKQ0 = (xqoZ f...
[ "0.8267183", "0.8148116", "0.811264", "0.80035985", "0.78749144", "0.78714716", "0.7843639", "0.7657778", "0.7489607", "0.74009585", "0.74009585", "0.74009585", "0.73622704", "0.7284026", "0.7249447", "0.7239407", "0.7238883", "0.7238883", "0.72352153", "0.7204413", "0.719513...
0.77959615
7
Test that full s3 metadata is correctly stripped to essentials
def TOav(YKHO): nPrm = {'ResponseMetadata': {'RequestId': 'XXXXXXXXXXXXXXXX', 'HostId': 'hhhhhhhhhhhhhhhhhhhhhhhhhh', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amz-id-2': 'ababababababababaabababababab', 'x-amz-request-id': 'XXXXXXXXXXXXXXXX', 'date': 'Wed, 20 Oct 2021 00:00:00 GMT', 'last-modified': 'Fri, 22 May 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AzvV(YKHO, ogLy):\n gbC4 = e8th.s3_key_names_to_clean('outbox/', ogLy.get('prepared'), ogLy.get('xml_file_to_doi_map'), ogLy.get('do_not_remove'), ogLy.get('do_remove'))\n YKHO.assertEqual(gbC4, ogLy.get('expected'), 'failed check in {comment}'.format(comment=ogLy.get('comment')))", "def r2yl(YKHO):\n ...
[ "0.7071416", "0.69247544", "0.6711803", "0.65330374", "0.65180415", "0.64667034", "0.6360186", "0.63230467", "0.6281179", "0.6276321", "0.61171323", "0.60566837", "0.60145736", "0.600942", "0.6006092", "0.5978313", "0.5961877", "0.5945466", "0.5897789", "0.5867041", "0.584592...
0.8298188
0
Decide whether ``method`` is contained within the MRO of ``object``.
def eIL4(NKcE, object): if not callable(NKcE) or not hasattr(NKcE, '__name__'): return False if tq_1.ismethod(NKcE): return NKcE.__self__ is object for Emd4 in tq_1.getmro(object.__class__): if Emd4.__dict__.get(NKcE.__name__, None) is NKcE: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DfO0(object):\n return isinstance(object, SnBA.MethodType)", "def kgaD(YEnM: Any) -> bool:\n return tq_1.ismethod(YEnM) or 'Boost.Python.function' in str(type(YEnM))", "def ciwD(d7pR, NKcE):\n return hasattr(d7pR, NKcE) and callable(getattr(d7pR, NKcE))", "def GRgQ(YEnM, Cp_n):\n if not hasat...
[ "0.68832517", "0.67464465", "0.67349166", "0.65703607", "0.6432216", "0.6161321", "0.60411626", "0.6025945", "0.59048045", "0.57359904", "0.5734392", "0.5706894", "0.5676422", "0.5661669", "0.56310344", "0.56203425", "0.56199515", "0.55781573", "0.5548041", "0.55368125", "0.5...
0.76714796
0
Apply function for `vectorbt.indicators.basic.MA`.
def tlXt(i8WE, KnxT, fdNI, xrkC, Z1s9): MKlR = hash((KnxT, fdNI)) return Z1s9[MKlR]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X1QG(wc14, fHeP, vVbW=100):\n return KTPN(wc14, fHeP, leads=vVbW)", "def fW1C(YKHO, dy_H, LDL1=True):\n ycBG = dy_H.copy().reset_index(drop=True)\n if LDL1:\n nnVk = 200\n else:\n nnVk = 50\n assert len(ycBG) > nnVk, 'Not enough data points in this timeseries!'\n for or8S in r...
[ "0.6564936", "0.61908185", "0.6128455", "0.5984452", "0.59652424", "0.59645486", "0.59355915", "0.5856882", "0.57462", "0.571832", "0.5692187", "0.5664699", "0.566012", "0.5619815", "0.5594224", "0.55898577", "0.5577156", "0.5549418", "0.5521161", "0.55150145", "0.54783326", ...
0.0
-1
Caching function for `vectorbt.indicators.basic.MSTD`.
def vdrJ(i8WE, w_5H, X6jt, xrkC, P_MT): Z1s9 = dict() for YRbF in range(len(w_5H)): MKlR = hash((w_5H[YRbF], X6jt[YRbF])) if MKlR not in Z1s9: Z1s9[MKlR] = yB9t(i8WE, w_5H[YRbF], X6jt[YRbF], adjust=xrkC, ddof=P_MT) return Z1s9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vymg(Emd4, nPrm, iVRZ, w_5H):\n KnxT = Emd4.get_only_one_positive_int(w_5H)\n z0q4 = '{}_{}_m_std'.format(iVRZ, KnxT)\n nPrm[z0q4] = nPrm[iVRZ].rolling(min_periods=1, window=KnxT, center=False).std()\n return nPrm", "def w7P0(YKHO, ewCu):\n pass", "def wlX9(Mkmy, YRbF, aPB5, sjXb, _wm_, pz1x...
[ "0.5957932", "0.59184873", "0.5699049", "0.56460124", "0.56098276", "0.553611", "0.5479815", "0.5406559", "0.5401095", "0.53737235", "0.53051645", "0.52908", "0.5272881", "0.5271256", "0.52460134", "0.5221955", "0.52169913", "0.5199122", "0.51928514", "0.5187776", "0.5165291"...
0.53501356
10
Apply function for `vectorbt.indicators.basic.RSI`.
def qiuK(i8WE, KnxT, fdNI, xrkC, Z1s9): MKlR = hash((KnxT, fdNI)) vFsZ, VhU6 = Z1s9[MKlR] H0q3 = vFsZ / VhU6 return 100 - 100 / (1 + H0q3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def exxs(nPrm):\n if nPrm is None:\n raise HfEf('[!] Invalid data value')\n Aofo = AsBL.IFT_RSI(nPrm)\n if Aofo is None:\n raise AG_L\n return Aofo", "def FV3J(YKHO, jQ3Z):\n jQ3Z['RSI'] = round(oQRR.rsi(jQ3Z[PSrQ.PRICE_COL]), 2)\n return jQ3Z", "def gi43(YKHO, TDme, exwG):\n ...
[ "0.6286931", "0.6077023", "0.60016006", "0.59995", "0.59768754", "0.5929737", "0.59177923", "0.5912615", "0.59061193", "0.57669103", "0.5764891", "0.57538414", "0.5708065", "0.550596", "0.54577136", "0.5426175", "0.5380706", "0.53164965", "0.5305945", "0.52951753", "0.5262326...
0.46255586
59
r"""Test LPyModelDriver error when LPy not installed.
def xXu5(): DQkc(RuntimeError, JFNo.LPyModelDriver, 'test', JXH8['lpy'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D3cq():\n with trZe.raises(FileNotFoundError):\n txH0('does-not-exist.pt')", "def u56H():\n with trZe.raises(ModuleNotFoundError):\n import torch\n with trZe.raises(ModuleNotFoundError):\n import tensorflow\n with trZe.raises(ModuleNotFoundError):\n import horovod\n ...
[ "0.6338071", "0.6316618", "0.616884", "0.59346616", "0.5849294", "0.5826512", "0.58031327", "0.57380205", "0.5728839", "0.572462", "0.5715396", "0.5711509", "0.56888545", "0.56804115", "0.56726086", "0.56611365", "0.56555086", "0.5634733", "0.56115484", "0.5584204", "0.558103...
0.85099113
0
Add Experiance to Replay Buffer.
def a1KP(YKHO, QTBn, XeOP, vOGg, rxHc, _ins, qoqK=-1): YKHO.Memory.addMulti(QTBn, XeOP, vOGg, rxHc, _ins, qoqK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, GsKL: Experience) -> None:\n YKHO.buffer.append(GsKL)", "def ilp5(YKHO, XeOP, QTBn, vOGg, f9TP):\n YKHO.replay_buffer.add_experience(XeOP, QTBn, vOGg, f9TP)", "def H2v5(YKHO, GsKL):\n YKHO.buffer.append(GsKL)", "def SStx(YKHO, GsKL):\n YKHO.buffer.append(GsKL)\n YKHO.number += 1...
[ "0.6126036", "0.60967386", "0.6094653", "0.5946677", "0.5672599", "0.55147403", "0.54663604", "0.5273294", "0.5226438", "0.5153992", "0.51377285", "0.5045141", "0.5034448", "0.49872455", "0.4966085", "0.4960083", "0.49395856", "0.48919225", "0.4891089", "0.4861434", "0.479920...
0.0
-1
Returns a tuples (variable index, column index in that variable). The function has two different behaviours, one when i (column index) is an integer, another one when i is a string (column name). If i is a string, the function looks for input name with this name and returns `(index, 0)`. If i is an integer, let's assum...
def bAvW(YRbF, g4y1): if isinstance(YRbF, int): if YRbF == 0: return (0, 0) RJv6 = 0 oeNL = 0 Os4s = g4y1[0][1].shape[1] if Os4s is None: raise RuntimeError('Cannot extract a specific column %r when one input (%r) has unknown dimension.' % (YRbF, g4y1[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIvi(Ty9i):\n mWFP = Ty9i.varName\n _0VL = mWFP[2:].split(',')\n YRbF, r845 = (int(_0VL[0]), int(_0VL[1]))\n return (YRbF, r845)", "def Osdw(YKHO, Z9rn: str) -> tuple:\n Z9rn = Z9rn.upper()\n if Z9rn == 'J':\n Z9rn = 'I'\n rdlD = 0\n while rdlD < 5:\n fvDH = YKHO.key[rdl...
[ "0.6323326", "0.58435106", "0.58264816", "0.5805598", "0.5801189", "0.57787395", "0.5754739", "0.57472175", "0.57394", "0.5714151", "0.56712127", "0.5657222", "0.56557673", "0.5651027", "0.56094927", "0.5593126", "0.55774975", "0.55662507", "0.5542124", "0.5514759", "0.550829...
0.7673106
0
This view is to redirect user to checkout from the my bookings page This can happen if the user have not finished the checkout after the booking was made
def aKOB(QePW, _sei): try: o6yu = xVxx.objects.get(pk=_sei) Ie79 = Iofl(b4z8, pk=o6yu.booked_vehicle.id) CBIr = QePW.user QePW.session['user.pk'] = CBIr.pk tQl4 = o6yu.booked_from kFxp = o6yu.booked_until g75m = kFxp - tQl4 Sm0u = g75m.days wjR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kMlI(QePW):\n fyJi = None\n if QePW.method == 'POST':\n L03z = PePt(None, None, QePW.POST)\n if L03z.is_valid():\n id = L03z.cleaned_data['id']\n XeOP = L03z.cleaned_data['action']\n wzkt = qcWV.now(FXGE.utc)\n fyJi = LGsE.objects.get(id=id)\n ...
[ "0.694296", "0.6487638", "0.64557004", "0.64254504", "0.6327567", "0.6299454", "0.62208414", "0.62182593", "0.61870754", "0.6173737", "0.61491144", "0.6130322", "0.6123574", "0.61085457", "0.6107655", "0.6100576", "0.6060958", "0.6017189", "0.5997124", "0.5986465", "0.5984689...
0.7800301
0
Loads an object saved with `torch.save()` or `crypten.save()`.
def tyeH(eHNT, jPPD=False, Iqhj=None, zZcM=0, **B2fa): if jPPD: raise NotImplementedError('Loading encrypted tensors is not yet supported') else: assert isinstance(zZcM, int), 'Load failed: src argument must be an integer' assert zZcM >= 0 and zZcM < JZ1r.get().get_world_size(), 'Load fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RgB_(yj5f):\n with open(yj5f + '.pkl', 'rb') as eHNT:\n return t2lc.load(eHNT)", "def tyeH(C3ST, mWFP='store/base'):\n if ht2j.cuda.is_available():\n TlrQ = ht2j.load(mWFP + '.pt')\n else:\n TlrQ = ht2j.load(mWFP + '.pt', map_location=ht2j.device('cpu'))\n print('Loaded', mWF...
[ "0.67293406", "0.624632", "0.6225806", "0.62197393", "0.6218711", "0.6209016", "0.620334", "0.620334", "0.61686987", "0.61686987", "0.6157381", "0.6125955", "0.6125955", "0.6077802", "0.6066805", "0.6058042", "0.6044678", "0.60228366", "0.60091394", "0.5953639", "0.59524447",...
0.5793288
37
Returns the gpustat of this host. See `excludeself` option of `gpuview run`.
def s32g(): def G07Y(YEnM): if hasattr(YEnM, 'isoformat'): return YEnM.isoformat() else: raise TypeError(type(YEnM)) geh0.content_type = 'application/json' if SO4c: _hkX = {'error': 'Excluded self!'} else: _hkX = aM69.my_gpustat() return qQXR....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EpYW(YKHO):\n return YKHO.__gpus", "def IQ8c():\n return MTKo['device_id']", "def e1YO(HL9a=None, bool=False, PJWX=False):\n if HL9a != None:\n lWbA(HL9a)\n return (dB99(HL9a, PJWX) < (1, 1)).min()\n Ylbp = (dB99(HL9a, PJWX) < (1, 1)).min(axis=1)\n if bool:\n return Ylbp...
[ "0.6925846", "0.6432396", "0.60408264", "0.5735819", "0.57051605", "0.57051605", "0.5696185", "0.56935096", "0.56897956", "0.5675194", "0.5662505", "0.5611714", "0.56056756", "0.55672836", "0.5566159", "0.5523766", "0.5503897", "0.54938495", "0.546913", "0.5446613", "0.541045...
0.0
-1
This field specifies the maximum number of SIDs in the top MSD in an MSD stack that the router can apply PSP or USP flavors to. If the value of this field is zero, then the router cannot apply PSP or USP flavors.
def zImk(YKHO): return YKHO._get_attribute('maxEndPopMsd')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UhGo(YKHO):\n return YKHO._get_attribute('maxLSPsOrMGroupPDUsPerBurst')", "def JHpf(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'max_shares')", "def N44s(YKHO):\n return YKHO.__size * 20", "def GkVq(YKHO):\n return 0", "def VAAb(YKHO):\n return 333", "def seGW(YKHO):\n return YKHO._...
[ "0.57622594", "0.5617422", "0.555893", "0.55575377", "0.5553475", "0.55190516", "0.5470241", "0.5453663", "0.5443849", "0.5418935", "0.5400843", "0.537705", "0.53716993", "0.5367154", "0.53652966", "0.53561544", "0.5355868", "0.53483653", "0.53373563", "0.5329634", "0.5325107...
0.5467811
7
Computes the closest pair of indices between two sets of indices. Each index pair corresponds to the start and end of a subsequence (i.e. phrases in a sentence). Currently finds the closest pair just by checking the absolute distance between the start of each subsequence.
def nUKv(Onpl, rFkw): if len(Onpl) == 1 and len(rFkw) == 1: return (Onpl[0], rFkw[0]) VSku = (Onpl[0], rFkw[0]) uYq_ = oyIN.abs(VSku[0][0] - VSku[1][0]) for q2Xo in Hs6x.product(Onpl, rFkw): pImw = oyIN.abs(q2Xo[0][0] - q2Xo[1][0]) if pImw < uYq_: VSku = q2Xo ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TloM(UdKV, P38E):\n UdKV = oyIN.array(UdKV)\n P38E = oyIN.array(P38E)\n yk4i = P38E[:, oyIN.newaxis] - UdKV[oyIN.newaxis, :]\n pImw = oyIN.einsum('ijk->ij', yk4i ** 2) ** 0.5\n d6pt = oyIN.argmin(pImw)\n return d6pt", "def Rds4(BDwY, g3ko, HE3w):\n oZf4, YBiN = (BDwY.index(g3ko), BDwY.in...
[ "0.63234985", "0.6176782", "0.6110066", "0.60815537", "0.6058005", "0.59816456", "0.5973025", "0.59400487", "0.59123135", "0.5912085", "0.58572686", "0.5849757", "0.5837614", "0.5810739", "0.5795735", "0.57617736", "0.575801", "0.5754841", "0.5753995", "0.5749336", "0.5748059...
0.73385775
0
Check if password is a valid password.
def W5z7(Es0b): if ZbWC.match('[A-Za-z0-9@#$%^&+=]{8,}', Es0b): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWk5(YKHO, jTXt):\n eD8c = ZbWC.compile(si3H.password_regex)\n if not eD8c.match(jTXt):\n return False\n m3KK = si3H.password_disallowed\n return jTXt not in m3KK", "def tWk5(YKHO, jTXt):\n if YKHO.password_regex.search(jTXt) is not None:\n print('Correct password')\n retu...
[ "0.8618973", "0.84867865", "0.8463078", "0.8462248", "0.84620655", "0.8333932", "0.83183765", "0.8301522", "0.83003336", "0.82944286", "0.82355964", "0.8194231", "0.81928074", "0.8173996", "0.8173349", "0.81718874", "0.8164174", "0.8164174", "0.81612766", "0.8147886", "0.8131...
0.77712625
46
Converts time strings to hour lists.
def QBVI(ITS7): KCHu = ITS7.split()[0] sQy3 = int(KCHu.split(':')[0]) zsn8 = KCHu.split(':')[1][-2:] if sQy3 == 12: sQy3 = sQy3 - 12 if zsn8 == 'PM': sQy3 = sQy3 + 12 sQy3 = sQy3 + 1 tTpl = ITS7.split()[2] t5sQ = int(tTpl.split(':')[0]) zsn8 = tTpl.split(':')[1][-2:] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eO0J(jmHs):\n qmLP = []\n Sm0u, VOlW = jmHs.split(',')\n assert int(Sm0u) == float(Sm0u)\n Sm0u = int(Sm0u)\n assert int(VOlW) == float(VOlW)\n VOlW = int(VOlW)\n if VOlW < 3:\n qmLP.append('Minimum interval is 3 hours')\n if Sm0u > 14:\n qmLP.append('Maximum spot forecast...
[ "0.7458262", "0.65959746", "0.6189524", "0.61875147", "0.6165391", "0.6014263", "0.5844406", "0.5827681", "0.58153456", "0.5808027", "0.5797886", "0.574867", "0.5677828", "0.56731707", "0.56696624", "0.56445616", "0.55809003", "0.55760634", "0.55455714", "0.55455714", "0.5545...
0.7849633
0
Return the Plant of the Day for a given day and partner site.
def FSz5(YKHO, sSpK, By9E): _rVR = None haex = None while not haex: w8hV = YKHO._pick_candidate_plant(sSpK, By9E) if w8hV: try: haex = aOjC.objects.get(scientific_name=w8hV.scientific_name) _rVR = w8hV except rIt9: w8hV....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bZLY(YKHO, sSpK, By9E):\n w8hV = None\n PHQD = YKHO.filter(last_seen=sSpK, partner_short_name=By9E, include=True)\n if len(PHQD) > 0:\n w8hV = PHQD[0]\n elif sSpK > _c1T.today():\n w8hV = None\n else:\n PHQD = YKHO.filter(last_seen__isnull=True, partner_short_name=By9E, incl...
[ "0.6798648", "0.5399709", "0.5290895", "0.5190091", "0.5084283", "0.50734746", "0.5037955", "0.49555525", "0.49534097", "0.4880959", "0.48276672", "0.48193213", "0.48121452", "0.47832596", "0.47429958", "0.47129145", "0.46985742", "0.468627", "0.46656072", "0.46105653", "0.45...
0.7144241
0
test retrieving a list of recipes
def FZ9P(YKHO): VHaa(user=YKHO.user) VHaa(user=YKHO.user) Ylbp = YKHO.client.get(nyJA) AHLC = LC16.objects.all().order_by('id') ZMzz = azWq(AHLC, many=True) print(qQXR.dumps(ZMzz.data, indent=1)) print('ok') print(qQXR.dumps(Ylbp.data, indent=1)) YKHO.assertTrue(Ylbp.status_code, jGR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h8CT(YKHO):\n pass", "def xtxm(YKHO):\n pass", "def jc7k(YKHO):\n pass", "def GKeA(YKHO):\n VHaa(name='Avocado toast')\n VHaa(name='Baklava')\n Ylbp = YKHO.client.get(tQ6t)\n AHLC = LC16.objects.all()\n ZMzz = azWq(AHLC, many=True)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP...
[ "0.81717724", "0.80490136", "0.804446", "0.79468447", "0.78477895", "0.7847377", "0.779245", "0.77565753", "0.77107847", "0.7424308", "0.73802507", "0.7204181", "0.71637887", "0.7118915", "0.70756555", "0.6992412", "0.69724214", "0.6953806", "0.6858405", "0.6855138", "0.68451...
0.73041534
11
retrieve recipes limited to the authenticated user
def DdhA(YKHO): uDCI = egNl().objects.create_user('test@test.com', 'passpass') VHaa(uDCI) VHaa(YKHO.user) Ylbp = YKHO.client.get(nyJA) YSCM = LC16.objects.filter(user=YKHO.user) ZMzz = azWq(YSCM, many=True) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) YKHO.assertEqual(len(Ylbp.da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n CBIr = YKHO.request.user\n return LC16.objects.filter(created_by=CBIr)", "def hBHr(YKHO):\n uDCI = egNl().objects.create_user(email='test2@gmail.com', password='123465')\n VHaa(user=uDCI)\n VHaa(user=YKHO.user)\n Ylbp = YKHO.client.get(nyJA)\n AHLC = LC16.objects.filter(use...
[ "0.73592275", "0.6845996", "0.6829094", "0.68058443", "0.6736745", "0.6716937", "0.6629862", "0.66132605", "0.6605455", "0.660369", "0.6595812", "0.6576698", "0.63961625", "0.6380524", "0.63551784", "0.6239085", "0.6230718", "0.6220945", "0.61829185", "0.61822295", "0.6172210...
0.6300848
15
test updating a recipe with PUT method
def gGPk(YKHO): YSCM = VHaa(user=YKHO.user) YSCM.tag.add(eo18(user=YKHO.user)) pB3N = {'title': 'chicken noodles', 'time_minutes': 50, 'price': 12.67} bD7m = iLuo(YSCM.id) YKHO.client.put(bD7m, pB3N) YSCM.refresh_from_db() YKHO.assertEqual(YSCM.title, pB3N['title']) YKHO.assertEqual(YSCM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gGPk(YKHO):\n YSCM = VHaa()\n YSCM.ingredients.create(name='Eggs')\n Ukpy = YSCM.description\n pB3N = {'name': 'Vegan gnocchi', 'ingredients': [{'name': 'Vegegg'}]}\n bD7m = sw45(YSCM.id)\n YKHO.client.put(bD7m, pB3N, format='json')\n YSCM.refresh_from_db()\n YKHO.assertEqual(YSCM.name,...
[ "0.8260011", "0.81543297", "0.8100989", "0.8089497", "0.80221903", "0.79731107", "0.7930643", "0.7832129", "0.7828336", "0.7796912", "0.778766", "0.7704531", "0.76727724", "0.7531208", "0.7522847", "0.75153404", "0.74857104", "0.7459878", "0.742174", "0.7314077", "0.73059416"...
0.8220734
1
test returning recipe's with specific ingredients
def N4bw(YKHO): GTTc = VHaa(user=YKHO.user, title='chicken curry') eowF = VHaa(user=YKHO.user, title='mutton curry') gGwe = VHaa(user=YKHO.user, title='milk dish') LIWY = wm3X(user=YKHO.user, name='chicken') RkoN = wm3X(user=YKHO.user, name='mutton') GTTc.ingredient.add(LIWY) eowF.ingredient...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XL_F(YKHO):\n pass", "def PqZM(YKHO):\n pass", "def f1hb(YKHO):\n KZtG = jRmL(user=YKHO.user, name='Prawns')\n ciPx = jRmL(user=YKHO.user, name='Garlic')\n pB3N = {'title': 'Avocado lime cheesecake', 'time_minutes': 20, 'price': 500.0, 'currency': 'NGN', 'ingredients': [KZtG.id, ciPx.id]}\n ...
[ "0.83429855", "0.79539394", "0.7854156", "0.7639293", "0.7604956", "0.7593395", "0.7559094", "0.751062", "0.74519587", "0.73807645", "0.7373793", "0.7361029", "0.73334414", "0.7307807", "0.7303709", "0.73035383", "0.71983427", "0.71857625", "0.7153656", "0.71254", "0.71071285...
0.7528916
7
Get the leaves of the decision tree >>> d = DecisionTreeClassifier() >>> d.fit([[1,2,3],[4,5,6],[7,8,9]], [1,2,3]) >>> get_n_leaves(clf) 4
def WHdi(M_NZ): K3B_ = M_NZ.tree_.children_left == -1 K3B_ = oyIN.arange(0, M_NZ.tree_.node_count)[K3B_] return len(K3B_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AfXs(J_Es):\n return ((J_Es.n_node_samples > 0) & (J_Es.feature == Qdh7)).sum()", "def K3B_(J_Es):\n if loae(J_Es):\n return [UXqs(J_Es)]\n else:\n return sum([K3B_(Fg_i) for Fg_i in GZiu(J_Es)], [])", "def ARYw(YKHO) -> int:\n if YKHO.root is None:\n return 0\n return Y...
[ "0.74670506", "0.68974525", "0.678377", "0.6779171", "0.6719672", "0.6653477", "0.65831137", "0.6513492", "0.64592224", "0.64412075", "0.64057827", "0.6375553", "0.63726157", "0.6322535", "0.6303533", "0.62496805", "0.62414163", "0.6231768", "0.61973846", "0.61602074", "0.614...
0.8843361
0
Generate n colors with equally spaced hues.
def Ol6_(exwG): F4JO = [] KCHu, Ty9i = (0.75, 0.9) Z9rn = KCHu * Ty9i r8hN = Ty9i - Z9rn for MKlR in oyIN.arange(25, 385, 360.0 / exwG).astype(int): y_mn = MKlR / 60.0 WKvO = Z9rn * (1 - abs(y_mn % 2 - 1)) d7Eb = [(Z9rn, WKvO, 0), (WKvO, Z9rn, 0), (0, Z9rn, WKvO), (0, WKvO, Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DFKP(exwG):\n yfUf = [360.0 / exwG * YRbF for YRbF in range(exwG)]\n ObL9 = [epAf.floor(Hafq / 60) % 6 for Hafq in yfUf]\n Vb5F = [Hafq / 60 - epAf.floor(Hafq / 60) for Hafq in yfUf]\n return ['rgb({}%, {}%, {}%)'.format(*tuple((jzdc * 100 for jzdc in FD84(MKlR, eHNT)))) for MKlR, eHNT in zip(ObL9,...
[ "0.8027365", "0.78960544", "0.75964296", "0.73884255", "0.7378317", "0.7127401", "0.70659304", "0.70644534", "0.7033906", "0.6942788", "0.6885502", "0.6885502", "0.6885502", "0.68266106", "0.68192196", "0.67784595", "0.67692924", "0.67639786", "0.6758458", "0.6753326", "0.670...
0.74503654
3
Plot confusion matrix using heatmap.
def T3Kt(nPrm, Crrw): E86w.set(color_codes=True) QrM1.figure(1, figsize=(9, 6)) QrM1.title('Normal Equations Method Confusion Matrix') E86w.set(font_scale=1.4) aNZO = E86w.heatmap(nPrm, annot=True, cmap='YlGnBu', cbar_kws={'label': 'Scale'}) aNZO.set_xticklabels(Crrw) aNZO.set_yticklabels(Cr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=None, leAC='Confusion matrix'):\n if KndY is not None:\n uuEx.heatmap(Bcwd, xticklabels=KndY, yticklabels=KndY, vmin=0.0, vmax=1.0, annot=True)\n else:\n uuEx.heatmap(Bcwd, vmin=0.0, vmax=1.0)\n QrM1.title(leAC)\n QrM1.ylabel('True label')\n QrM1.xlabel('Predicted l...
[ "0.830233", "0.82818854", "0.824255", "0.82181364", "0.8200182", "0.81982034", "0.8061991", "0.7947487", "0.79189795", "0.7879949", "0.78654116", "0.7864955", "0.781701", "0.781386", "0.7800045", "0.7795842", "0.7794019", "0.7789363", "0.77865803", "0.77813697", "0.7779168", ...
0.7825948
12
Return the name of the sensor.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._sensor.name", "def _lKy(YKHO):\n return YKHO.data[1]", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'", "def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'", "def mWFP(YKHO):\n return f'{YKHO._na...
[ "0.91896784", "0.9168378", "0.890185", "0.8770976", "0.8511273", "0.8479953", "0.844435", "0.8299758", "0.8186503", "0.8105667", "0.8079737", "0.8066149", "0.8049647", "0.7700968", "0.7612295", "0.7611456", "0.7600605", "0.7600605", "0.7600605", "0.75392073", "0.75166553", ...
0.0
-1
Return the name of the sensor.
def ShR8(YKHO) -> str: return YKHO._unique_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._sensor.name", "def _lKy(YKHO):\n return YKHO.data[1]", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'", "def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'", "def mWFP(YKHO):\n return f'{YKHO._na...
[ "0.91896784", "0.9168378", "0.890185", "0.8770976", "0.8511273", "0.8479953", "0.844435", "0.8299758", "0.8186503", "0.8105667", "0.8079737", "0.8066149", "0.8049647", "0.7700968", "0.7612295", "0.7611456", "0.7600605", "0.7600605", "0.7600605", "0.75392073", "0.75166553", ...
0.0
-1