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
| %angular | |
| <base href="http://demos.telerik.com/kendo-ui/gantt/index"> | |
| <style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style> | |
| <title></title> | |
| <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.common-material.min.css" /> | |
| <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.material.min.css" /> | |
| <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.material.mobile.min.css" /> | |
| <script src="http://kendo.cdn.telerik.com/2016.3.1028/js/jquery.min.js"></script> |
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 needed, install plotly via shell like so | |
| %sh pip install plotly | |
| #--- | |
| %pyspark | |
| import plotly | |
| import numpy as np | |
| from plotly.graph_objs import Scatter, Layout | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| probabilityInsideCluster = 0.5 | |
| probabilityOutsideCluster = 0.2 | |
| probabilityNoise = 0.3 | |
| clusterBoundaries = c(10, 25, 56, 81, 151, 293) | |
| clientTypeCount = c(0, 0, 0, 0) | |
| library(dplyr) | |
| library(rpart) | |
| # this create a frame of clients | |
| makeClientsFrame = function(attribCount = 1000, | |
| clientCount = 1000, |
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
| library(stockPortfolio) | |
| library(quadprog) | |
| library(ggplot2) | |
| stocks <- c("SPY", "EFA", "IWM", "VWO", "LQD", "HYG") | |
| returns <- getReturns(stocks, freq = "week") | |
| eff.frontier <- function (returns, | |
| short = "no", | |
| max.allocation = NULL, |
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
| require(devtools) | |
| install_version("imager", version = "0.20", repos = "http://cran.us.r-project.org") | |
| library("mxnet") | |
| library(imager) | |
| # can download the model from http://www.orbifold.net/default/R/MxNet/MxNetInception.zip | |
| model = mx.model.load("Inception_BN", iteration=39) | |
| mean.img = as.array(mx.nd.load("mean_224.nd")[["mean_img"]]) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> | |
| var getters = []; | |
| function getPromise(k) { |