Skip to content

Instantly share code, notes, and snippets.

View tekeburak's full-sized avatar
🎯
Focusing

Burak Teke tekeburak

🎯
Focusing
View GitHub Profile
# 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
#!/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()
@tekeburak
tekeburak / upload_files.md
Created February 22, 2018 00:34
Upload the competition files
# 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/
@tekeburak
tekeburak / create_tut_kaggle.md
Created February 22, 2018 00:18
Create a folder to use the competition
# Create a folder to use the competition
!mkdir -p my_drive/tut_kaggle
@tekeburak
tekeburak / create_my_drive.md
Created February 22, 2018 00:12
Create a directory and mount Google Drive using that directory.
# Create a directory and mount Google Drive using that directory.
!mkdir -p my_drive
!google-drive-ocamlfuse my_drive
@tekeburak
tekeburak / gen_cred_for_DF.md
Created February 22, 2018 00:09
Generate creds for the Drive FUSE library
# 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}