This commit is contained in:
Antoine JOUBREL 2024-03-26 21:07:29 +00:00
parent 5e37dd4d3d
commit dd5c3f416b

View File

@ -21,7 +21,7 @@ warnings.filterwarnings('ignore')
# functions
def generate_test_set(type_of_comp):
file_path_list = fs.ls(f"projet-bdc2324-team1/Generalization/{type_of_comp}/Test_set")
file_path_list = fs.ls(f"projet-bdc2324-team1/Generalization_v2/{type_of_comp}/Test_set")
test_set = pd.DataFrame()
for file in file_path_list:
print(file)
@ -32,7 +32,7 @@ def generate_test_set(type_of_comp):
def generate_train_set(type_of_comp):
file_path_list = fs.ls(f"projet-bdc2324-team1/Generalization/{type_of_comp}/Train_set")
file_path_list = fs.ls(f"projet-bdc2324-team1/Generalization_v2/{type_of_comp}/Train_set")
train_set = pd.DataFrame()
for file in file_path_list:
print(file)
@ -43,7 +43,7 @@ def generate_train_set(type_of_comp):
type_of_comp = input('Choisissez le type de compagnie : sport ? musique ? musee ?')
BUCKET_OUT = f'projet-bdc2324-team1/Generalization/{type_of_comp}/'
BUCKET_OUT = f'projet-bdc2324-team1/Generalization_v2/{type_of_comp}/'
# create test and train datasets
test_set = generate_test_set(type_of_comp)