AutoViML / AutoViz

Automatically Visualize any dataset, any size with a single line of code. Created by Ram Seshadri. Collaborators Welcome. Permission Granted upon Request.
Apache License 2.0
1.71k stars 197 forks source link

No plot visible in local Jupiter #61

Closed GDGauravDutta closed 2 years ago

GDGauravDutta commented 2 years ago

from autoviz.AutoViz_Class import AutoViz_Class %matplotlib AV = AutoViz_Class() df = AV.AutoViz(filename='',dfte=train,depVar='Species',verbose=1)

Using matplotlib backend: Qt5Agg Shape of your Data Set loaded: (150, 5) ############## C L A S S I F Y I N G V A R I A B L E S #################### Classifying variables in data set... Number of Numeric Columns = 4 Number of Integer-Categorical Columns = 0 Number of String-Categorical Columns = 0 Number of Factor-Categorical Columns = 0 Number of String-Boolean Columns = 0 Number of Numeric-Boolean Columns = 0 Number of Discrete String Columns = 0 Number of NLP String Columns = 0 Number of Date Time Columns = 0 Number of ID Columns = 0 Number of Columns to Delete = 0 4 Predictors classified... No variables removed since no ID or low-information variables found in data set

################ Multi_Classification VISUALIZATION Started ##################### Data Set Shape: 150 rows, 5 cols Data Set columns info:

but no plot.

In kaggle it' was working fine

https://www.kaggle.com/gauravduttakiit/multi-classification-problem-iris/notebook

AutoViML commented 2 years ago

Hi @GDGauravDutta šŸ‘ You didn't get the sequence of commands above right. You must do %matplotlib inline after you create the AutoViz_Class.

import pandas as pd
import numpy as np
###########  import Autoviz_Class ##################
from autoviz.AutoViz_Class import AutoViz_Class
###########  set up the data ##################
datapath = '../Ram/Data_Sets/'
file_name = 'iris.csv'
depVar = 'typeclass'
sep=','
###########  Create the autoviz_class ###############
AV = AutoViz_Class()
###########  do %matplotlib inline now ############
%matplotlib inline
###########  Now run Autoviz ##################
_ = AV.AutoViz(datapath+file_name)

This sequence above works fine and displays the charts in my Jupyter Notebook (laptop). AutoViML

AutoViML commented 2 years ago

Hi @GDGauravDutta šŸ„‡ If you need to download a notebook that works and you can test you data on it: here it is

https://github.com/AutoViML/AutoViz/blob/master/Examples/AutoViz_Demo.ipynb

AutoViML