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
| !pip install playwright | |
| !playwright install | |
| # colab need this for async | |
| import nest_asyncio | |
| nest_asyncio.apply() | |
| # start browser, not to use 'with' context | |
| from playwright.async_api import async_playwright | |
| playwright = await async_playwright().start() | |
| browser = await playwright.chromium.launch() |
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
| gar.fun<-function(out.var,mod.in,bar.plot=T,struct=NULL,x.lab=NULL, | |
| y.lab=NULL, wts.only = F){ | |
| require(ggplot2) | |
| require(plyr) | |
| # function works with neural networks from neuralnet, nnet, and RSNNS package | |
| # manual input vector of weights also okay | |
| #sanity checks |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| An example to show a testing framework in R using the testthat package |
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
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| % Matlab code to produce PCA animations shown here: | |
| % http://stats.stackexchange.com/questions/2691 | |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| % Static image | |
| clear all | |
| rng(42) |
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
| gar.fun<-function(out.var,mod.in,bar.plot=T,struct=NULL,x.lab=NULL, | |
| y.lab=NULL, wts.only = F){ | |
| require(ggplot2) | |
| require(plyr) | |
| # function works with neural networks from neuralnet, nnet, and RSNNS package | |
| # manual input vector of weights also okay | |
| #sanity checks |