Skip to content

djzdjzdl/Privacy_Law_With_XAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Privacy_Law_With_XAI

OverView

Directory Setting

  • Resume.csv [Dataset File]
  • main.py [run XAI & Data Converter]
  • XAI.py [XAI model implementation]
  • datasets.py [Make Train_set, Test_set using csv file]

How to Run

python main.py

Function Explanation

main.py [Run AI Model + XAI model]

  • Just import XAI.py, then run Do_XAI function

XAI.py [Train AI, Analyze with XAI]

  • Do_AI [Train AI model with datasets]

    • RFClassifier [Implementation Random Forest Model]
  • Do_XAI [Get text Analyze with LIME]

    • Get_Dataset [Get dataset using file path]
    • Get_Lime [Setting XAI Model with LIME]
    • Do_Lime [Get Analyzed data using XAI model]

datasets.py [Setting train, testset using csv file]

  • Fetch_Dataset(file_path, number_of_string_column, number_of_label_column, split_proportion) [Get train, testset]
    • Make_Train_Set(dataset, split_proportion) [Set Train, Testset with split proportion]
    • Dataset_Maker_With_Each_Label(csv_reader, number_of_string_column, number_of_label_column) [Making all_in_one dataset with each label values]
    • Dataset_Maker(csv_reader, number_of_string_column) [Making all_in_one dataset with random label values 0, 1]

Releases

No releases published

Packages

No packages published

Languages