Day 71 – Intelligent Visual Data Discovery With LUX Python API For Machine Learning
Gopi Chandrakesan
?? Project Manager/Solution Architect ?? Blogger on SAP, ?? Artificial Intelligence, ?? Machine Learning, and ?? Deep Learning ?? Ask me about Data Intelligence
This blog will check how LUX python API helps us in data visualization with few lines of code.
Visualization is an important part of the Machine Learning Data Science part because users cannot understand it if we only represent data.?However, data visualization clearly shows which one performs better and which one lags.?I will walk through with a simple example of how to visualize data.
What is LUX?
Lux is a Python library that makes data science easier by automating certain aspects of the data exploration process. Lux is designed to facilitate faster experimentation with data, even when the user does not have a clear idea of what they are looking for. Lux is integrated with an interactive Jupyter widget that allows users to quickly browse through large collections of data directly within their Jupyter notebooks.
Let’s get into the code part.
In this example, I am using Jypyter Notebook, and you can check the code in the Github repository.
#Install Lux API
pip install lux-api
#Install luxwidget to load all visualizations and this is a mandatory step
!jupyter nbextension install --py luxwidget
!jupyter nbextension enable --py luxwidget
#Import Lux, Pandas and OS libraries
import lux
import pandas as pd
import os
#Function to download and read delivery data CSV file
DATA_FILES_PATH = r"C:\\LUX"
def load_customer_data(data_path=DATA_FILES_PATH):
??? csv_path = os.path.join(data_path, "customer_data_lux.csv")
??? return pd.read_csv(csv_path)
This is one of the cool library that must have in our machine learning data exploration.
What is your view about this LUX API library? Please comment below
Github repository:
Documentation: