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
| import httplib2, argparse, os, sys, json | |
| from oauth2client import tools, file, client | |
| from oauth2client.service_account import ServiceAccountCredentials | |
| from googleapiclient import discovery | |
| from googleapiclient.errors import HttpError | |
| #Project and model configuration | |
| project_id = '132567073760' | |
| model_id = 'HAR-model' |
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
| { | |
| "Results": { | |
| "result": { | |
| "type": "table", | |
| "value": { | |
| "ColumnNames": [ | |
| "Col1", | |
| ..., | |
| ..., | |
| "Scored Probabilities for Class \"1\"", |
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
| import urllib2 | |
| import json | |
| #web service config | |
| webservice = 'YOUR_WS_URL' | |
| api_key = 'YOUR_WS_KEY' | |
| #dataset config | |
| labels = { | |
| '1': 'walking', '2': 'walking upstairs', '3': 'walking downstairs', |
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
| import boto3 | |
| from boto3.session import Session | |
| #AWS config | |
| session = Session(aws_access_key_id='YOUR_KEY', aws_secret_access_key='YOUR_SECRET_KEY') | |
| machinelearning = session.client('machinelearning', region_name='YOUR_REGION') | |
| model_id = 'YOUR_MODEL_ID' | |
| labels = {'1': 'walking', '2': 'walking upstairs', '3': 'walking downstairs', '4': 'sitting', '5': 'standing', '6': 'laying'} | |
| try: |
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
| from itertools import izip | |
| import re | |
| output_file = 'dataset.csv' | |
| input_files = { | |
| 'train/X_train.txt': 'train/y_train.txt', | |
| 'test/X_test.txt': 'test/y_test.txt' | |
| } | |
| def getOutputLines(filenames): |
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
| (function($){ | |
| $(function(){ | |
| //on domready | |
| muut(function(app){ //on forum load | |
| //retrieve DOM element | |
| var createInput = $('.m-form.m-create'); | |
| var only_admin_channels = ['Your Channel 1', 'Your Channel 2']; // list of channel-titles | |
| var is_moderator = app.is_signed && app.user.is_admin; | |
| //on load and update events | |
| app.on('load update', function (_, e) { |
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
| (function($){ | |
| $(function(){ | |
| //on domready | |
| muut(function(app){ //on forum load | |
| //init custom DOM structure | |
| var userFeedTitle = $('<span class="userpage-title"></span>'); | |
| var title = $('.m-pagetitle').prepend(userFeedTitle); | |
| //on load and update events | |
| app.on('load update', function (_, e) { | |
| //switch userpage class |
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
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"/> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| <title>Recurly Test</title> |
NewerOlder