본문 바로가기
Python

[autoML][python][mljar] automated machine learning Part3 : interpretation reportUsing Visual Studio Code

by Chandler.j 2024. 9. 11.
반응형

이전글 참고

- Part1

 

[python][mljar] automated machine learning - Part2 : mljar

순서 1. mljar : automated machine learning 2. install - pip 3. run code 4. report 1. mljar : automated machine learning - 머신러닝 자동화 프레임 워크 그림참고 참고 : https://mljar.com/automated-machine-learning/ What is Automated Machin

datainsider.tistory.com


- Part2

 

[autoML][python][mljar] automated machine learning - Part2 : mljar.version2

1. previous posting (install) 2. mode (manual, custom) 3. model save, load 4. features importance 1. previous posting (install) 설치 및 간단한 소개에 대해서는 이전글 참고 2021.05.26 - [Data Insider] - [python][mljar] automated machine lea

datainsider.tistory.com


1. mljar

https://mljar.com/

 

MLJAR - Outstanding Data Science Tools

MLJAR provides tools for data science. MLJAR AutoML for bulding Machine Learaning Pipelines. Mercury for creating web apps with Python notebooks.

mljar.com

- AutoML framework

- 지속적인 업데이트로 아주 쓸만한 프레임워크

- 거의 모든 ML 관련 업무 처리에 용이함


2. install

pip install mljar-supervised

3. data and modeling

- titanic.csv

 

datasets/titanic.csv at master · datasciencedojo/datasets

A public repo of datasets. Contribute to datasciencedojo/datasets development by creating an account on GitHub.

github.com

 

import pandas as pd
from supervised.automl import AutoML

# 데이터 로드
df = pd.read_csv('titanic.csv')

# AutoML 객체 생성
automl = AutoML(mode="Explain", total_time_limit=3600)

# 모델 학습
automl.fit(X=df.drop(columns=["Survived"]), y=df["Survived"])

 

- output

- 여러가지 설정에 따라 다른 결과들이 출력됨

- 가장 간단한 튜토리얼임


4. interpretation 

- VS Code와 호환이 좋다.

- model fit이 끝나면 설정해놓은 디렉토리가 생성되고 결과를 볼 수 있다.

- README.md 에 전체적인 요약이 있다.



- Best model의 README.md 로 이동하면 모델에 대한 요약이 있다.


5. 결론

- mljar & VS Code를 적절히 잘 활용하면 많은 양의 ML 관련 TASK를 쉽게 관리하며 피드백 할 수 있다.
- 얼마 전까지만 해도 일단 초안잡는 역할이었지만 현재는 성능 자체도 우수하게 뽑히는 경우도 있어 ML modeling 전주기를 관리하는 프레임워크로 유용하게 사용된다.

 


TOP

Designed by 티스토리