Giter VIP home page Giter VIP logo

jdd-login-risk-detection's Introduction

逻辑说明

  1. 建立一个子模型, 本段交易定义为这段交易前后2次交易时间不超过20min, 如果最近2h内登录过不同设备或IP, 就加入数据集
  2. 建立一个主模型, 本段交易定义为这段交易前后2次交易时间不超过20min, 本次登录定义为最近一次登录结果不为31的登录, 就加入数据集
  3. Data Leak: 根据Val集制定白样本过滤策略, 对于前两步生成的结果集, 如果某段交易的那次登录城市, 3天前以及3天后, 用户都登录过, 从结果集中去除

代码说明

1. Data

  • 对所有数据新增一列row_name, 要求全局唯一

2. Feature

  • 导入Feature内的Intellij工程
  • 运行com.jd.login.v14.Feature14A.java, com.jd.login.v14.Feature14C.java, 生成训练测试特征数据
  • 注意运行其他package内.java, 生成前置map文件
  • 运行com.jd.login.WhiteList.java, 打印结果b.csv

3. Jupyter Notebook

  • 运行part1.ipynb, 生成子模型结果集a.csv
  • 运行part2.ipynb, 生成主模型结果集c.csv
  • 合并a.csvc.csv, 去重复, 去除b.csv中的row_name, 生成最后结果集d.csv

jdd-login-risk-detection's People

Contributors

ssssqd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.