Skip to content

Commit

Permalink
Made small change to setenv script and updated some READMEs (noticed …
Browse files Browse the repository at this point in the history
…that matplotlib is already included in requirements.txt)
  • Loading branch information
djglowny committed Apr 20, 2017
1 parent a7753a9 commit b433d90
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ It is capable of detecting and correcting data errors through user-defined *erro

PILOTS has been successfully applied to avionics applications. Most notably, we have shown that PILOTS can fix data errors due to pitot tube sensor failures which occurred in [Air France Flight 447 accident](http://wcl.cs.rpi.edu/papers/bdse2013.pdf). For more information, visit [the PILOTS web site](http://wcl.cs.rpi.edu/pilots/) and look at [related papers](https://wcl.cs.rpi.edu/bib/Keyword/DATA-STREAMING.html).

In version 0.4, PILOTS has introduced the ability to use machine learning models to predict output based on input streams/producers of data. These learning models utilize [sci-kit learn library](http://scikit-learn.org/stable/), and this PILOTS project already includes an offline linear regression model and an online dynamic Bayes classifier model. Further information on utilizing the learning model functionality of PILOTS can be found [here](https://wcl.cs.rpi.edu/pilots/tutorial/learning_model_overview.html).

*Note: The following commands shown for the command line are assumed to be implemented in the bash shell*


1. Software Requirements
----------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -35,12 +39,12 @@ PILOTS has been successfully applied to avionics applications. Most notably, we
~~~
pilots.jar will be created under the `$PILOTS_HOME/lib` directory.

* **Configuring the CLASSPATH environment variable**
* **Configure aliases**

In order to make sure that aliases for the PLC and PLCSIM compiler commands are correctly figured as well as the definition of $PILOTS_HOME, make sure that you are in the [*root directory*](https://github.com/RPI-WCL/pilots) of the project and then use the following command:

When using the PILOTS libraries, be sure that your java CLASSPATH includes the three .jar files found in `$PILOTS_HOME/lib` (i.e., jfreechar-1.0.14.jar, jcommon-1.0.17.jar, and pilots.jar).
We have provided an example of setting the CLASSPATH along with some recommended aliases in the `$PILOTS_HOME/setenv` script. To use it, run
~~~
$ source setenv
source setenv
~~~

* **(Optional) Predictive Function setup**
Expand Down
3 changes: 1 addition & 2 deletions pilots/util/learningmodel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ Service:
Make sure to install the following before working with the learning model component of PILOTS:

1. [python-pip](https://pypi.python.org/pypi/pip)
2. [python-matplotlib](http://matplotlib.org/)
3. [virtualenv](https://virtualenv.pypa.io/en/stable/)
2. [virtualenv](https://virtualenv.pypa.io/en/stable/)


Then simply run at the [root directory](https://github.com/RPI-WCL/pilots/tree/learn_dev) of the project:
Expand Down
4 changes: 2 additions & 2 deletions setenv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export PILOTS_HOME=$PWD

alias plc='java -cp $PILOTS_HOME/lib/pilots.jar:$PILOTS_HOME/lib/jcommon-1.0.17.jar:$PILOTS_HOME/lib/jfreechart-1.0.14.jar:$PILOTS_HOME/lib/json-java.jar pilots.compiler.PilotsCompiler'
alias plc='java -cp .:$PILOTS_HOME/lib/pilots.jar:$PILOTS_HOME/lib/jcommon-1.0.17.jar:$PILOTS_HOME/lib/jfreechart-1.0.14.jar:$PILOTS_HOME/lib/json-java.jar pilots.compiler.PilotsCompiler'

alias plcsim='java -cp $PILOTS_HOME/lib/pilots.jar:$PILOTS_HOME/lib/jcommon-1.0.17.jar:$PILOTS_HOME/lib/jfreechart-1.0.14.jar:$PILOTS_HOME/lib/json-java.jar -Dsim pilots.compiler.PilotsCompiler'
alias plcsim='java -cp .:$PILOTS_HOME/lib/pilots.jar:$PILOTS_HOME/lib/jcommon-1.0.17.jar:$PILOTS_HOME/lib/jfreechart-1.0.14.jar:$PILOTS_HOME/lib/json-java.jar -Dsim pilots.compiler.PilotsCompiler'

0 comments on commit b433d90

Please sign in to comment.