# Import keras
!pip install -q keras
import keras
# Run to classify and to create the submission file
!python3 ~/my_drive/tut_kaggle/SVM_with_rbf_kernel.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Feb 3 17:13:19 2018 | |
@author: burak | |
""" | |
import numpy as np | |
#from sklearn.model_selection import train_test_split |
# Check GPU
import tensorflow as tf
tf.test.gpu_device_name()
# Upload files
from google.colab import files
uploaded = files.upload()
# Run the colab_test.py
!python3 ~/my_drive/tut_kaggle/colab_test.py
# See the files in tut_kaggle folder
!ls ~/my_drive/tut_kaggle/
# Create a folder to use the competition
!mkdir -p my_drive/tut_kaggle
# Create a directory and mount Google Drive using that directory.
!mkdir -p my_drive
!google-drive-ocamlfuse my_drive
# Generate creds for the Drive FUSE library.
from oauth2client.client import GoogleCredentials
creds = GoogleCredentials.get_application_default()
import getpass
!google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret} < /dev/null 2>&1 | grep URL
vcode = getpass.getpass()
!echo {vcode} | google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret}
NewerOlder