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
#!/bin/bash | |
# This is an example of loading test dataset for slice 1_01 | |
# This will serve as a template for loading test dataset for other slices | |
# Require load-images-test.lua to be hosted on S3 | |
# After this run load-test-slice.sh for each of the other slices | |
slice='1_01' | |
cd ~/demos/load-data |
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
n_in = 784 | |
n_hid = 392 | |
n_out = n_in | |
batch_size = 64 | |
nb_epoch = 10 | |
learning_rate = 1e-3 | |
from keras.datasets import mnist | |
import numpy as np | |
(X_train, y_train), (X_test, y_test) = mnist.load_data() |
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
def shear_and_rotate(image_path, img_w, img_h): | |
from skimage.io import imread, imsave | |
from skimage.transform import resize | |
from skimage import transform as transf | |
import numpy as np | |
from skimage.filters import threshold_otsu | |
from scipy.ndimage.interpolation import rotate | |
import math | |
image = imread(image_path) |
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 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { |
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 'package:flutter/material.dart'; | |
import 'package:google_places_flutter/address_search.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override |
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 'package:flutter/material.dart'; | |
class AddressSearch extends SearchDelegate<Suggestion> { | |
@override | |
List<Widget> buildActions(BuildContext context) { | |
return [ | |
IconButton( | |
tooltip: 'Clear', | |
icon: Icon(Icons.clear), | |
onPressed: () { |
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 'dart:convert'; | |
import 'dart:io'; | |
import 'package:http/http.dart'; | |
// For storing our result | |
class Suggestion { | |
final String placeId; | |
final String description; |
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 'package:flutter/material.dart'; | |
import 'package:google_places_flutter/address_search.dart'; | |
import 'package:google_places_flutter/place_service.dart'; | |
import 'package:uuid/uuid.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
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 'dart:convert'; | |
import 'dart:io'; | |
import 'package:http/http.dart'; | |
class Place { | |
String streetNumber; | |
String street; | |
String city; | |
String zipCode; |
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 'package:flutter/material.dart'; | |
import 'package:google_places_flutter/address_search.dart'; | |
import 'package:google_places_flutter/place_service.dart'; | |
import 'package:uuid/uuid.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
OlderNewer