首页 > TAG信息列表 > Cum

cir·cum·stance

[Date: 1100-1200; Language: Old French; Origin: Latin circumstantia, from circumstare 'to stand around', from circum- ( CIRCUM-) + stare 'to stand'] In law, attendant circumstances (sometimes external circumstances) are the facts surro

常用风控评估指标汇总(混淆矩阵/AUC/ROC/KS/PSI/Lift/Gain等)

本文主要汇总一些常用于机器学习的评估指标,针对每个指标由浅入深,从”一句话解释“、定义及公式、计算/绘制步骤等方面一一总结。这些指标本身可用于很多业务场景,但因为我从事风控行业,本文涉及的例子都是风控的案例,重点介绍这些指标如何评估风控模型的效果。 1. 混淆矩阵 一句话

Mysql的常用语句

一.mysql查询——计算占比与累计占比 比如我们有一个销量数据表(product_sales),其中包含字段序号Id、产品product、销量Sales,现在需要编写一个查询语句,计算出各产品的销量占比和累计销量占比。     第一步,计算总的产品销量 select sum(sales)as sum_sales from product_sales;

sql-常见面试题汇总

1.连续7天登陆但未下单的用户 select c.user_id, count(c.cum) as cum_01 from (select a.user_id,a.time01 - row_number() over(partition by a.user_id order_by a.time01 asc) as cum from ( select distinct user_id ,to_char(event_time,'yyyymmdd') as

与matlab里面 imadjust 函数相同的python代码

          正在做一个把matlab程序转python的工作,遇到 matlab里面的 imadjust 函数,但是找了一圈没有对应的python函数,需要自定义一个函数 import numpy as np from bisect import bisect_left # 已测试完毕,成功 def imadjust(src, tol=1, vin=[0, 255], vout=(0, 255)

关于新冠的作图(R语言)

新冠统计 对新冠数据进行爬取,处理数据,并对其作出相应的图。具体代码如下: #加载各个包 library(sf) library(ggplot2) library(dplyr) library(magrittr) library(gganimate) library(lubridate) library(magick) library(nCov2019) library(RColorBrewer) library(remotes) #

Oracle 执行JOB程序自动存储数据

//执行定时任务DECLARE JOB NUMBER;BEGIN SYS.DBMS_JOB.SUBMIT(job,'CUX_FinishedProcedure;',SYSDATE,'SYSDATE+30/(60*24*60)');END; //执行存储过程CREATE OR REPLACE PROCEDURE CUX_FinishedProcedure IS vExist NUMBER(30); isExist NUMBER(30)

[LeetCode 361] Bomb Enemy

Given a 2D grid, each cell is either a wall 'W', an enemy 'E' or empty '0'(the number zero), return the maximum enemies you can kill using one bomb. The bomb kills all the enemies in the same row and column from the planted p

cumsum累计函数系列:pd.cumsum()、pd.cumprod()、pd.cummax()、pd.cummin()

cum系列函数是作为DataFrame或Series对象的方法出现的,因此命令格式为D.cumsum() 举例: D=pd.Series(range(0,5)) 1. cumsum 2. cumprod 3. cummax 4. cummin   参考文献: 【1】Pandas —— cum累积计算和rolling滚动计算