• 2024-04-254-25 WP整理
    AliyunCTF2024-帕鲁情绪管理nc链接上去过掉proof看到如下交互sha256(("zqonds929lsi1d19ayrm6xdxogid"+"????").encode())=447dedc4395aae3f6344689b6fdeadc71d7759c3d9b5071ce318267ed587ce97Pleaseinputtheanswer:Doyouwanttotraining?(y/n)ysentim
  • 2024-04-06Protobuf - Scalar Types
    InProtobuf,typesthatareconsideredsimpleandthatareprovidedbyProtobufoutoftheboxare calledscalartypes.Wecanuse15ofsuchtypes,aslistedhere:•int32•int64•uint32•uint64•sint32•sint64•fixed32 (unsigned,cannotstorenega
  • 2024-03-07AT_abc338_f [ABC338F] Negative Traveling Salesman 题解
    分析考虑状压。定义状态函数\(f_{i,j}\)表示在经过点的情况为\(i\)且最后停在点\(j\)的最小花费。那有:\(f_{i,j}=\min\{f_{i',k}+w_{k\toj}|k\toj\}\)。然后就过不了样例一。根据样例一,可以发现\(f_{3,2}=f_{2,2}+w_{2\to1}+w_{1\to2}\)。也就是说我们在原本已经走
  • 2024-03-04[Rust] Using Box<dyn error::Error>> return one of miultiple error types at runtime
    usestd::error;usestd::fmt;usestd::num::ParseIntError;fnmain()->Result<(),Box<dynerror::Error>>{letpretend_user_input="42";letx:i64=pretend_user_input.parse()?;println!("output={:?}",Po
  • 2024-01-31无涯教程-Number.NEGATIVE_INFINITY函数
    这是一个特殊的数值,表示小于Number.MIN_VALUE的值。该值表示为"-Infinity"。如,任何乘以NEGATIVE_INFINITY的值为NEGATIVE_INFINITY,而除以NEGATIVE_INFINITY的值为零。因为NEGATIVE_INFINITY是一个常数,所以它是Number的只读属性。Number.NEGATIVE_INFINITY-语法varval=Numbe
  • 2024-01-30F - Negative Traveling Salesman
    F-NegativeTravelingSalesmanProblemStatementThereisaweightedsimpledirectedgraphwith$N$verticesand$M$edges.Theverticesarenumbered$1$to$N$,andthe$i$-thedgehasaweightof$W_i$andextendsfromvertex$U_i$tovertex$V_i$.The
  • 2024-01-28ABC338 F Negative Traveling Salesman 题解
    QuestionABC338FNegativeTravelingSalesman给出一个\(N\)个点\(M\)条边的有向图,边权可能为负数,但不可能有负环每经过一条边就要加上这条边的代价求,一条路径经过所有的点,并且要求总代价最小Solution观察到\(N\le20\)自然而然想到状压因为多次经过一条边的代价是
  • 2024-01-22关于变元极性选择策略
    1.2023年最新的一篇文献 New Boolean satisfiability problem heuristic strategy: Minimal Positive Negative Product Strategy@article{DBLP:journals/corr/abs-2310-18370,author={QunZhaoandXintaoWangand
  • 2023-12-07气象中和风相关的概念
    http://colaweb.gmu.edu/dev/clim301/lectures/wind/wind-uv东西风U单位:米/秒(m/s),通常正值为西风,负值为东风。南北风V单位:米/秒(m/s),通常正值为南风,负值为北风。U为正值为西风的意思是风从西边吹来,真实的风向箭头指向右边,U为负值风从东边吹来,箭头指向左边。V为正值为南风风从南
  • 2023-11-06Negative controls and Positive controls
    =================Negativecontrolsaregroupswherenophenomenonisexpected.Theyensurethatthereisnoeffectwhenthereshouldbenoeffect.Tocontinuewiththeexampleofdrugtesting,anegativecontrolisagroupthathasnotbeenadministeredt
  • 2023-09-27连接正负极Connection of positive and negative poles
    不要把物理公式看作数学公式,请也尊重自然的经验法则。Don'tseethephysicalformulasasmathematicalformulas,pleasealsorespecttheexperiencerulesofnature.连接正负极Connectionofpositiveandnegativepoles欧姆定律Ohm'sLaw\(I=\frac{V}{R}\)物理:
  • 2023-09-25《AT_abc310_h Negative Cost》 解题报告
    神仙题看到没人交题解,我来交一发。\(Part\0:\)我瞎扯扯我做这题时想着先把耗费魔法值为负的做掉,然后最后再做一段魔法值为正的,但是不好做,做不了。这个东西也贪心不了,因为你魔法值和伤害这两个东西拆不开,然后就什么都做不了了。本篇题解中没有什么心路历程,又不能分析出什么动
  • 2023-08-15ElasticSearch置顶方案
    最近系统有个需求,希望工作流的审批人被催办后就要置顶在最前面,工作流列表我是用es的,一开始想用pinned实现,但用pinned的话,每页都会置顶在前面,我的需求只是想让他优先排在前面,翻页后正常显示后面找到这个,通过把匹配到数据的分数提高,然后用sort进行排序,就能实现我的需求了GETwf
  • 2023-08-14Stable Diffusion学习笔记
    一、使用讯飞星火大模型生成StableDiffusionprompt(提示词)#StableDiffusionprompt助理你来充当一位有艺术气息的StableDiffusionprompt助理。##任务我用自然语言告诉你要生成的prompt的主题,你的任务是根据这个主题想象一幅完整的画面,然后转化成一份详细的、高
  • 2023-08-04如何用Confusion matrix,classification report,ROC curve (AUC)分析一个二分类问题
    ROChttps://zhuanlan.zhihu.com/p/246444894   Sure,let'screatearandomconfusionmatrixasanexample,andthenI'llexplainwhateachelementinthematrixmeans:Supposewehaveabinaryclassificationproblem,wherethetruelabelsareas
  • 2023-07-25Introduction to Embedding for Retrieval 向量化召回简介
    引言搜广推类似场景都是retrieval+ranking两阶段方式,前者用从海量候选粗选一轮,后者再用负载模型,是效果、延迟和机器资源的trade-off的产物。retrieval广泛使用embedding+ANN方案,比起invertindex个性化更强。embedding动机,word2vec用向量表示高维的one-hot编码,向量的距
  • 2023-06-21Stable Diffusion 反向提示词 Negative prompts
    反向提示词(Negativeprompts)用于描述图片中不希望出现的内容。常用于阻止生成特定的事物、样式或修复某些图像异常。下面是一些例子从“宁静的精灵森林”中移除“苔藓”宁静的精灵森林peacefulelvenforest,thickforest,largelivingtreesarevisibleinthebackground,b
  • 2023-06-19Sqrt(x)
    Givenanon-negativeintegerx,returnthesquarerootofxroundeddowntothenearestinteger.Thereturnedintegershouldbenon-negativeaswell.Youmustnotuseanybuilt-inexponentfunctionoroperator.Forexample,donotusepow(x,0.5)inc++o
  • 2023-06-08pandas.DataFrame.duplicated—返回表示重复行的布尔集合
    https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.duplicated.html语法格式DataFrame.duplicated(subset=None, keep='first')参数解释:suset:指定某些列来标识重复项,默认情况下使用所有列;keep:确定标记哪些重复值。接受‘first’,‘last’
  • 2023-05-31使用OpenAI API进行Model Fine-tuning
    目录1基本信息2操作示例2.1准备数据2.2模型训练2.3模型推理1基本信息参考资料:官方指南:https://platform.openai.com/docs/guides/fine-tuning微调接口:https://platform.openai.com/docs/api-reference/fine-tunes数据接口:https://platform.openai.com/docs/api-refere
  • 2023-05-10Stable Diffusion 反向提示词 Negative prompts
    反向提示词(Negativeprompts)用于描述图片中不希望出现的内容。常用于阻止生成特定的事物、样式或修复某些图像异常。下面是一些例子从“宁静的精灵森林”中移除“苔藓”宁静的精灵森林peacefulelvenforest,thickforest,largelivingtreesarevisibleinthebackgro
  • 2023-05-04numpy.ndarray.flatten-返回numpy对象的一维数组
    参考:https://numpy.org/doc/stable/reference/generated/numpy.ndarray.flatten.html语法格式ndarray.flatten(order='C')order:“C”表示按行(C-style)顺序折叠。“F”表示按列(Fortran-style)顺序进行平化。'A'表示:如果A在内存中是Fortran连续的,则按列顺序平化,否则按行顺
  • 2023-05-03pandas drop、loc和iloc函数对数据框进行操作
    pandas.DataFrame.drop—从行或列中删除指定的标签参考:https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.drop.html语法格式DataFrame.drop(labels=None, *, axis=0, index=None, columns=None, level=None, inplace=False, errors='raise
  • 2023-04-25mac使用Stable Diffussion进阶篇
    1、出图大法魔咒百科词典 (Bybilibili波西BrackRat)2、样例使用文字描述第一区►Prompt第一行(masterpiece:1.0),(bestquality:1.0),(ultrahighres:1.0),(8kresolution:1.0),(realistic:1.0),(ultradetailed1:0),(sharpfocus1:0),(RAWphoto:1.0)第二行1girl,
  • 2023-04-25pandas.DataFrame—构建二维、尺寸可变的表格数据结构
    语法格式pandas.DataFrame(data=None, index=None, columns=None, dtype=None, copy=None)常用的几个参数解释:data:一系列数据,包括多种类型;index:索引值,行标签,默认值为RangeIndex(0,1,2,…,n);columns:列标签,默认值为RangeIndex(0,1,2,…,n);dtype:设置数据