I try to keep virtualenv and conda going to ensure I stay versed in both virtual environment
methodologies. In virtualenv I can simply moding the script located in $PATH/bin/activate where
$PATH is the path to the virtual environment I'm working on. However, the process in conda is a
little more involved (but also straightforward, as all things conda seem to be).
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
| def press_statistic(y_true, y_pred, xs): | |
| """ | |
| Calculation of the `Press Statistics <https://www.otexts.org/1580>`_ | |
| """ | |
| res = y_pred - y_true | |
| hat = xs.dot(np.linalg.pinv(xs)) | |
| den = (1 - np.diagonal(hat)) | |
| sqr = np.square(res/den) | |
| return sqr.sum() |
# create a new screen called sumpTin & nutTin
$ screen -S sumpTin
$ screen -S nutTin
# Exit sumpTin in detached state
# Ctrl A, Ctrl D
# list existing screens
$ screen -lsOlderNewer