{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import joblib\n", "\n", "obj = joblib.load('traning_zone/mini_modèle/maquillage/transformers/object.pkl')" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array(['maquillage'], dtype=object)" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "obj.inverse_transform([1])" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "from traning_zone.traitement_data.feature_engeneering_mini_modele.data_clearning import *\n", "from traning_zone.data_import.data_importation import *" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "data" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "df = clearning_pred(*[\"1964\"])\n", "DF = data_import(*[\"1964\"])" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "obj = joblib.load('traning_zone/mini_modèle/maquillage/transformers/object.pkl')\n", "tv = joblib.load('traning_zone/mini_modèle/maquillage/transformers/tv_transform.pkl')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(array(['confiserie de sucre'], dtype=object),\n", " array(['confiserie'], dtype=object))" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from traning_zone.classe_prediction.classe_prediction import *\n", "\n", "X = [\"milka e\"] \n", "\n", "pred = Prediction(X)\n", "pred.final_prediction()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "obj = joblib.load('traning_zone/modèles/transformers/object.pkl')\n", "tv = joblib.load('traning_zone/modèles/transformers/tv_transform.pkl')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "df = pd.read_csv(\"data_maquillage.csv\")\n", "DF = df.copy()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | Unnamed: 0 | \n", "COUNTRY_KEY | \n", "ITEM_DESC | \n", "BARCODE | \n", "BEM_CLASS_KEY | \n", "BEM_CLASS_DESC_FR | \n", "prediction | \n", "
|---|---|---|---|---|---|---|---|
| 0 | \n", "0 | \n", "FRA | \n", "150ML SECHE VERNIS VITRY | \n", "3538892526034 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "maquillage des ongles | \n", "
| 1 | \n", "1 | \n", "FRA | \n", "15COM.SOMMEIL TRIPLE ACTI.PURE | \n", "3701056803443 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "maquillage | \n", "
| 2 | \n", "2 | \n", "FRA | \n", "2 EPONG.DEMAQUILLER N°42 SANOD | \n", "3701509580426 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "autres produits maquillage | \n", "
| 3 | \n", "3 | \n", "FRA | \n", "200ML DIFF PFUM FIGUE CDP | \n", "3551780164033 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "maquillage | \n", "
| 4 | \n", "4 | \n", "FRA | \n", "2PCS EPONGE DEMAQUILLANTE | \n", "3276558220253 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "autres produits maquillage | \n", "
| \n", " | Unnamed: 0 | \n", "COUNTRY_KEY | \n", "ITEM_DESC | \n", "BARCODE | \n", "BEM_CLASS_KEY | \n", "BEM_CLASS_DESC_FR | \n", "prediction | \n", "Prediction | \n", "
|---|---|---|---|---|---|---|---|---|
| 0 | \n", "0 | \n", "FRA | \n", "150ML SECHE VERNIS VITRY | \n", "3538892526034 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "maquillage des ongles | \n", "confiserie | \n", "
| 1 | \n", "1 | \n", "FRA | \n", "15COM.SOMMEIL TRIPLE ACTI.PURE | \n", "3701056803443 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "maquillage | \n", "premiers soins | \n", "
| 2 | \n", "2 | \n", "FRA | \n", "2 EPONG.DEMAQUILLER N°42 SANOD | \n", "3701509580426 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "autres produits maquillage | \n", "hygiène féminine intime | \n", "
| 3 | \n", "3 | \n", "FRA | \n", "200ML DIFF PFUM FIGUE CDP | \n", "3551780164033 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "maquillage | \n", "soins du corps | \n", "
| 4 | \n", "4 | \n", "FRA | \n", "2PCS EPONGE DEMAQUILLANTE | \n", "3276558220253 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "autres produits maquillage | \n", "confiserie | \n", "
| ... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
| 91 | \n", "91 | \n", "FRA | \n", "TAILLE CRAYON JUMBO EYE CARE | \n", "3532665009106 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "maquillage des yeux | \n", "maquillage | \n", "
| 92 | \n", "92 | \n", "FRA | \n", "TROUSSE CM + GEL + SAVON C419 | \n", "3433425316024 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "autres produits maquillage | \n", "bain douches savons | \n", "
| 93 | \n", "93 | \n", "FRA | \n", "TROUSSE CM BOI ROSE OSM C419 | \n", "3433425315928 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "autres produits maquillage | \n", "parfums | \n", "
| 94 | \n", "94 | \n", "FRA | \n", "TRSE CM+GELHYDRO+SAVON GR C419 | \n", "3433425316079 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "autres produits maquillage | \n", "bain douches savons | \n", "
| 95 | \n", "95 | \n", "FRA | \n", "ZAP FAP NACRE 106 BIO 3G | \n", "3700756601069 | \n", "1964 | \n", "DIVERS MAQUILLAGE | \n", "maquillage | \n", "maquillage | \n", "
96 rows × 8 columns
\n", "