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
| body { | |
| font-size: 16px; | |
| font-family: Helvetica; | |
| background-color: aquamarine; | |
| } | |
| #instructors { | |
| background-color: beige; | |
| padding: 10px; | |
| } |
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> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta name="description" content="PUI/SSUI Lab Week 1" /> | |
| <title>Week 1</title> | |
| <link rel="stylesheet" type="text/css" href="styles.css" /> | |
| <link rel="shortcut icon" href="favicon.ico" /> |
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 python | |
| # Python imports. | |
| import sys | |
| import logging | |
| # Other imports. | |
| import srl_example_setup | |
| from simple_rl.agents import LinearQLearnerAgent, RandomAgent,QLearnerAgent | |
| from simple_rl.tasks import GymMDP |
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
| ''' | |
| LinearQLearnerAgentClass.py | |
| Contains implementation for a Q Learner with a Linear Function Approximator. | |
| ''' | |
| # Python imports. | |
| import numpy as np | |
| import math |
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 numpy as np | |
| import matplotlib.pylab as plt | |
| from scipy.stats import skew | |
| from scipy.stats import entropy | |
| filename=["kmeans.meanshift.normalized.500.bandwidth.1.0.label.freq.csv", | |
| "kmeans.meanshift.normalized.500.bandwidth.1.1.label.freq.csv", | |
| "kmeans.meanshift.normalized.1000.bandwidth.1.1.label.freq.csv", | |
| "kmeans.meanshift.normalized.1000.bandwidth.1.2.label.freq.csv"] |
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
| if __name__=="__main__": | |
| # A=[[1,2,1,0],[3,1,0,1]] | |
| # A=np.array(A) | |
| # | |
| # b=np.array([6,9]) | |
| # c=np.array([[-2],[-1],[0],[0]]) | |
| # I=np.array([2,3]) | |
| # | |
| # print(simplex(I, c, A, b)) | |
| # |
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
| public class SensorService extends Service implements SensorEventListener, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener { | |
| // final Handler handler = new Handler(); | |
| private PowerManager pm; | |
| private PowerManager.WakeLock wl; | |
| GoogleApiClient googleClient; | |
| String tail="."; | |
| String recordingStrategy=""; | |
| int countDM=0; | |
| boolean thread=false; |