Code Monkey home page Code Monkey logo

cam-square's Introduction

README

개발 환경

  • Tensorflow ver 1.12
  • scikit-learn 0.19.1
  • Anaconda 5.2.0
  • xgboost 0.81 (GPU accelerated version)
  • seaborn 0.9.0

첨부 파일 목록

  • CAM_CNN.py
  • CNN_module.py
  • XGBoost_GPU.py
  • EDA.ipynb

실행 방법

EDA.ipynb는 시각화 및 doc2vec 코드가 포함되어 있습니다.

python XGBoost_GPU.py 
python CAM_CNN.py 

XGBoost.py를 실행시 학습 진행 및 결과를 추출합니다. 다만 XGboost GPU version이 설치되어 있어야 합니다.

CAM_CNN.py를 실행하면 graph와 result 폴더가 생성됩니다. result 폴더에는 다음과 같은 값들이 저장됩니다.

  • result.csv : test data에 대한 cam score
  • star_results.csv : 상위 5개 ingredient를 별로 표시한 데이터
  • top_dict.json : 각 cuisine 상위 ingredient count dictionary

graph 폴더에는 모델과 텐서플로우를 통해 추출한 summary 값들(loss와 accuracy)가 저장됩니다. 또한 embedding 된 값들에 PCA와 t-sne 를 적용할 수 있습니다. 텐서보드 명령어는 다음과 같습니다.

tensorboard --logdir="./graph/"

모델의 전체적인 모양은 다음과 같습니다.

graph

cam-square's People

Contributors

jayhey avatar

Watchers

James Cloos 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.