This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pandas as pd | |
from tqdm import tqdm | |
import torch | |
import torchaudio | |
class DatasetDownloader(): | |
def __init__(self, key_word='sheila'): | |
self.key_word = key_word |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_IV(df, feature, target): | |
lst = [] | |
# optional | |
# df[feature] = df[feature].fillna("NULL") | |
unique_values = df[feature].unique() | |
for val in unique_values: | |
lst.append([feature, # Feature name | |
val, # Value of a feature (unique) |