From 88cc968b0abb1317b7de1537775f23a4e5207c22 Mon Sep 17 00:00:00 2001 From: shaaqu Date: Mon, 18 May 2020 19:16:36 +0200 Subject: [PATCH] changed CreateDataSweets to lowercase --- .idea/workspace.xml | 21 ++++++++++++++++----- Assiging/feature_hashing.py | 6 ++++++ data.py | 2 +- 3 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 Assiging/feature_hashing.py diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5c1c2d0..a22380b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,9 +2,9 @@ + - - + + + + @@ -122,7 +125,7 @@ - + 1589815443652 @@ -131,7 +134,14 @@ - @@ -152,7 +162,8 @@ - diff --git a/Assiging/feature_hashing.py b/Assiging/feature_hashing.py new file mode 100644 index 0000000..b225e0a --- /dev/null +++ b/Assiging/feature_hashing.py @@ -0,0 +1,6 @@ +from sklearn.feature_extraction import FeatureHasher +from data import create_data_sweets + +data = create_data_sweets() + + diff --git a/data.py b/data.py index 8d55fcd..c101d40 100644 --- a/data.py +++ b/data.py @@ -1,7 +1,7 @@ from sweets import Sweets -def createDataSweets(): +def create_data_sweets(): allProducts = [] sweet = Sweets('Mars', 'czekoladowy', 'baton', 'sredni', 2.49)