Giter Club home page Giter Club logo

qufa2021's Introduction

qufa2021

  • 수치형, 범주형 결측값 보간기
  • 수치형 변수 기반 이상값 탐지기
  • 입력 데이터 형식: csv
  • python 3.7.6

1. 데이터 품질 검사

각 품질 지표에 대해 print

수치형 변수 결측률 검사

python get_numerical_missing_rate.py --input_fname bank_incomplete_test.csv

범주형 변수 결측률 검사

python get_categorical_missing_rate.py --input_fname bank_incomplete_test.csv

이상값 비율 검사

python get_outlier_rate.py --input_fname bank_test.csv

2. 데이터 품질 개선

결측값 보간

python data_imputation.py --input_fname bank_incomplete_test.csv --result_path result_imputation
  • 보정 데이터 ./result_imputation/result.csv
  • 보정 결과 ./result_imputation/result.json
{"result": {"age": 112, "job": 115, "marital": 112, "education": 109, "default": 95, "balance": 95, "housing": 100, "loan": 111, "contact": 97, "day": 107, "month": 104, "duration": 100, "campaign": 104, "pdays": 86, "previous": 102, "poutcome": 109, "deposit": 110}, "input_fname": "bank_incomplete_test.csv", "result_path": "result_imputation"}
  • "변수명": 결측 보간값 갯수(원래 결측값 갯수)

이상값 제거

python outlier_detection.py --input_fname bank_test.csv --result_path result_outlier
  • 보정 데이터 ./result_outlier/result.csv
  • 보정 결과 ./result_outlier/result.json
{"result": {"num_outliers": 9, "outlier_indices": [890, 891, 951, 952, 961, 968, 982, 985, 987]}}
  • num_outliers: 이상값 갯수
  • outlier_indices: 이상값 row index

qufa2021's People

Contributors

dohnlee avatar

Watchers

 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.