v2
This commit is contained in:
parent
5e37dd4d3d
commit
dd5c3f416b
|
@ -21,7 +21,7 @@ warnings.filterwarnings('ignore')
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
def generate_test_set(type_of_comp):
|
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()
|
test_set = pd.DataFrame()
|
||||||
for file in file_path_list:
|
for file in file_path_list:
|
||||||
print(file)
|
print(file)
|
||||||
|
@ -32,7 +32,7 @@ def generate_test_set(type_of_comp):
|
||||||
|
|
||||||
|
|
||||||
def generate_train_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()
|
train_set = pd.DataFrame()
|
||||||
for file in file_path_list:
|
for file in file_path_list:
|
||||||
print(file)
|
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 ?')
|
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
|
# create test and train datasets
|
||||||
test_set = generate_test_set(type_of_comp)
|
test_set = generate_test_set(type_of_comp)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user