{"cells":[{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"cell_type":"code","source":"import numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n\nimport os\nimport glob as glob\nimport seaborn as sns","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"path = '../input/indoor-location-navigation/train/*'\nfiles = glob.glob(path)\ncnt = np.zeros(11)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"for i in files:\n    cnt[0] += len(glob.glob(i+'/B1'))\n    cnt[1] += len(glob.glob(i+'/B1'))\n    for j in range (0,9):\n        cnt[j+2] += len(glob.glob(i+'/F'+str(j))) ","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"print(cnt)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"prob = cnt / cnt.sum()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"df_submission = pd.read_csv(\"../input/indoor-location-navigation/sample_submission.csv\", index_col=0)\n#Calculate the mean of the first 12113 files in the training Data\ndf_submission[\"x\"] = 94.21851104 \ndf_submission[\"y\"] = 98.96631499\ndf_submission[\"floor\"] = np.random.choice(2,len(df_submission[\"floor\"])) + 1\ndf_submission.head()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"df_submission.to_csv(\"submission.csv\")","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat":4,"nbformat_minor":4}