{"id":23102755,"url":"https://github.com/dataxujing/icsc","last_synced_at":"2025-04-03T21:27:28.098Z","repository":{"id":112305324,"uuid":"108060634","full_name":"DataXujing/ICSC","owner":"DataXujing","description":"A R package for Inter-credit.","archived":false,"fork":false,"pushed_at":"2018-01-09T07:44:46.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T09:29:05.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DataXujing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-24T01:21:05.000Z","updated_at":"2023-02-19T11:38:00.000Z","dependencies_parsed_at":"2023-04-29T14:09:05.794Z","dependency_job_id":null,"html_url":"https://github.com/DataXujing/ICSC","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2FICSC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2FICSC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2FICSC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2FICSC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataXujing","download_url":"https://codeload.github.com/DataXujing/ICSC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247081210,"owners_count":20880390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T00:00:26.364Z","updated_at":"2025-04-03T21:27:28.076Z","avatar_url":"https://github.com/DataXujing.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n![logo](pic/logo.png)\r\n\r\n# 联信案件评分模型\r\n\r\n宁新，王谦谦，DataXujing\r\n\r\n## 安装\r\n\r\n`devtools::install_github('DataXujing/ICSC')`\r\n\r\n## 使用说明\r\n\r\n提供了联信案件评分模型的整套流程，包含了相关核心函数，使用样例\r\n\r\n```r\r\nlibrary(tidyverse)\r\nlibrary(ICSC)\r\n\r\ndata \u003c- read_csv('../fenc.csv')\r\n  \r\ndata \u003c- data[,c( 'x1','x2','x3','x4', 'x5', 'x6', 'x7','x8','x9','x10','x11','y')]\r\n\r\ncutdatx \u003c- CutX(X=data,CutDat=CutDat)\r\n\r\ntraindat(cutdatx,totalgood,totalbad)\r\n\r\n\r\ntotalgood = as.numeric(table(data$y))[1]\r\ntotalbad = as.numeric(table(data$y))[2]\r\n\r\ntrainWOE \u003c- traindat(cutdatx,totalgood,totalbad)\r\n\r\nScoreCard(cutdatx,trainWOE,p=20/log(2),q=600-20*log(15)/log(2))\r\n\r\n\r\n```\r\n\r\n\r\n## 附：Java传入json数据及R传出json数据\r\n\r\nJSON(JavaScript Object Notation)需要注意的是R本事不可以直接使用JSON格式的数据，但R中的列表与Python的字典非常相似，可以完成所有类似python字典的操作。\r\n\r\nJava灌入json数据后，R通过rjson:fromJSON()转化成R对象\r\neg. fromJSON('{\"a\":true,\"b\":false,\"c\":null}');toJSON把R对象转化为json.\r\n\r\n此外，rlist包也有对json数据的转化，list.parse()函数，list.stack（）函数把list.parse对象转化为数据框；\r\nlist.save,list.load把一个list保存成JSON,YMAL,RData,RDas.\r\n如果需要可以通过以上方式交互JSON与R处理对象\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataxujing%2Ficsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdataxujing%2Ficsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataxujing%2Ficsc/lists"}