This file contains 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
#include <iostream> | |
#include <unistd.h> | |
#include "cuda.h" | |
int main() | |
{ | |
// show memory usage of GPU | |
size_t free_byte ; | |
size_t total_byte ; |
This file contains 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
import google.datalab.bigquery as bq | |
def create_query(phase, EVERY_N): | |
""" | |
phase: 1=train 2=valid | |
""" | |
base_query = """ | |
WITH daynames AS | |
(SELECT ['Sun', 'Mon', 'Tues', 'Wed', 'Thurs', 'Fri', 'Sat'] AS daysofweek) | |
SELECT | |
(tolls_amount + fare_amount) AS fare_amount, |