Giter Club home page Giter Club logo

ai's Introduction

식용버섯인지 독버섯인지 분류하기

버섯 데이터셋 출처 및 참고 사이트

https://www.kaggle.com/uciml/mushroom-classification

순번

1. 데이터 전처리

2. 데이터 읽기 뒤 불필요한 열 삭제

3. 데이터분석

4.여러가지 도구들로 학습시킨뒤에 예측

1. 데이터 전처리

nogagong

gagonghu

(0은 독이없는 버섯, 30은 독이 있는 버섯이라는 걸 나타내었고 나머지 값들을 서로 구분짓는 숫자로 나타내었음)

2. 데이터 읽기 뒤 불필요한 열 삭제

from classification_util import ClassificationUtil
busot=ClassificationUtil()
busot.ignore_warning()
busot.read('mushrooms.csv')
busot.drop(['cap-shape','bruises','gill-attachment','gill-spacing','stalk-shape','stalk-root','stalk-surface-above-ring','stalk-color-above-ring','stalk-surface-below-ring','stalk-color-below-ring','veil-type','veil-color','ring-number','ring-type','spore-print-color','population','habitat'])

show

(열을 제거한 뒤 모습)

3. 데이터분석

busot.heatmap()
busot.myviolinplot('class','cap-color')

heatmap

myviolinplot

4. 여러가지 도구들로 학습시킨뒤에 예측

print('svm:')
busot.run_svm(['cap-color','cap-surface','odor','gill-size','gill-color'],'class')
print('neighbor:')
busot.run_neighbor_classifier(['cap-color','cap-surface','odor','gill-size','gill-color'],'class',3)
print('logistic:')
busot.run_logistic_regression(['cap-color','cap-surface','odor','gill-size','gill-color'],'class')
print('decision:')
busot.run_decision_tree_classifier(['cap-color','cap-surface','odor','gill-size','gill-color'],'class')

결과

많은 표본수와 독버섯 특유의 odor(냄새)와 cap-color(갓색깔)이 식용 버섯들과 틀리기 때문에 높은 적중률을 보이게 되었습니다.

ai's People

Contributors

renoris 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.