{"cells":[{"cell_type":"markdown","metadata":{"_cell_guid":"879fa169-95dd-6873-f2a5-ab558c842343"},"source":""},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"da32abf9-75e8-fb41-22fb-e94c8e1656ff"},"outputs":[],"source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load in \n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the \"../input/\" directory.\n# For example, running this (by clicking run or pressing Shift+Enter) will list the files in the input directory\n\nfrom subprocess import check_output\nprint(check_output([\"ls\", \"../input\"]).decode(\"utf8\"))\n\n# Any results you write to the current directory are saved as output."},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"d45a10c3-9016-e163-753f-bee3883747c1"},"outputs":[],"source":"X=pd.read_csv(\"../input/train.csv\")"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"9c320ccd-35e4-94c5-60ef-79cf1306dc5b"},"outputs":[],"source":"X=np.array(X)\ny=X[:,0]\nX=X[:,np.arange(1,X.shape[1])]\nprint (X.shape,y.shape)"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"dade9810-4788-464f-bd5b-42143c23e587"},"outputs":[],"source":"y=X[:,0]"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"97edb3fe-a4ca-9b48-ddc1-a167a91cbf61"},"outputs":[],"source":"X=X[:,np.arange(1,X.shape[1])]"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"4c4ad41a-76bf-7239-2acc-99553c6f38b2"},"outputs":[],"source":"print (X.shape)"}],"metadata":{"_change_revision":0,"_is_fork":false,"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.5.2"}},"nbformat":4,"nbformat_minor":0}