-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5ebdb1f
Showing
253 changed files
with
29,112 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[package] | ||
name = "site" | ||
version = "0.1.0" | ||
authors = ["Jorge Israel Peña <jorge.israel.p@gmail.com>"] | ||
|
||
[dependencies] | ||
toml = "*" | ||
regex = "*" | ||
glob = "*" | ||
|
||
# due to diecast | ||
log = "*" | ||
env_logger = "*" | ||
rustc-serialize = "*" | ||
time = "*" | ||
|
||
# templates | ||
handlebars = "*" | ||
|
||
# ws | ||
websocket = "*" | ||
|
||
# git | ||
git2 = "*" | ||
|
||
# rss | ||
rss = "*" | ||
|
||
[dependencies.diecast] | ||
path = "../diecast" | ||
|
||
# due to diecast | ||
[dependencies.typemap] | ||
path = "../../rust-typemap" | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
www.blaenkdenum.com |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: Bitcoin | ||
published: October 24, 2014 | ||
excerpt: The first decentralized cryptocurrency | ||
comments: off | ||
toc: left | ||
--- | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: Distributed Systems | ||
published: September 15, 2014 | ||
excerpt: Solving problems with multiple computers | ||
comments: off | ||
toc: left | ||
--- | ||
|
||
I'm using [Distributed Systems for Fun and Profit] for an introduction to the field of distributed systems. | ||
|
||
[Distributed Systems for Fun and Profit]: http://book.mixu.net/distsys/ | ||
|
||
_Scalability_ is the ability of a system, network, or process to handle a increasing work in a capable manner. _Availability_ is the proportion of a system is in functioning condition. _Fault tolerance_ is the ability to behave in a well-defined manner when faults occur. | ||
|
||
Distributed systems are constrained by the number of nodes and the distance between them. Varying these quantities has an effect on the distributed system. Increasing the number of nodes increases the probability of failure in the system (reducing availability) and may increase the need for communication between them (reducing performance). Increasing the distance between the nodes increases the minimum latency. | ||
|
||
Abstractions and models are often used to facilitate the conceptualization and design of distributed systems by removing certain real-world aspects that aren't relevant to solving the problem. The types of models may include system models, failure models, and consistency models. | ||
|
||
The distribution of the necessary data can affect perfromance and fault tolerance. _Partitioning_ refers to splitting the data over multiple nodes to increase parallel processing. _Replication_ refers to copying or caching data on multiple nodes to reduce the distance between the client and the server, which also increasing fault tolerance. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
title: Julia | ||
published: July 23, 2014 | ||
excerpt: A high-performance dynamic language for numerical computing | ||
comments: off | ||
toc: left | ||
--- | ||
|
||
# Types | ||
|
||
There are signed and unsigned integers of the form `Intx` and `Uintx` ranging from 8 to 128, as well as `Int` and `Uint` which are aliases for the type representing machine's word size, which itself is available as `WORD_SIZE`. Floating-point types take the form `Floatx` from 16 to 64. | ||
|
||
Integer literals take on a type depending on the machine's word size, though if they are too large to fit in 32-bits then they are represented as `Int64`, regardless of the machine's word size. | ||
|
||
Unsigned integer literals are written in hexadecimal. | ||
|
||
Floating-point literals are inferred as `Float64` values, and `Float32` literals can be entered by using scientific exponent notation with an `f` instead of an `e`. | ||
|
||
The `typemin` and `typemax` functions can be used to yield the minimum and maximum bounds for a type. | ||
|
||
It's possible to find the distance between two adjacent representable floating-point numbers, a distance known as machine epsilon. The `eps` function can give the distance between 1.0 and the next larger representable floating-point value for a particular type. | ||
|
||
The `eps` function can also take a floating-point value, in which case it returns the absolute value of difference between the value and the next representable floating-point value, so that `x + eps(x)` is the next representable floating-point value greater than `x`. | ||
|
||
The next or previous representable floating-point number can also be retrieved using the `nextfloat` and `prevfloat` functions. | ||
|
||
The `BigInt` and `BigFloat` types can be used to create arbitrary precision integers and floating-point numbers, which are constructed by passing the number as a string. | ||
|
||
Variables can be immediately preceded by numeric literals and thereby imply multiplication, simplifying the writing of polynomial expressions. These are known as numeric literal coefficients. The precedence of numeric literal coefficients is the same as unary operators, so they can also precede parentheses and other things. | ||
|
||
``` julia | ||
2x^2 - 3x + 1 | ||
2(x-1)^2 - 3(x-1) + 1 | ||
``` | ||
|
||
Parenthesized expressions can also be used as coefficients to variables to imply multiplication of the expression by the variable. | ||
|
||
``` julia | ||
(x-1)x | ||
``` | ||
|
||
The `zero` and `one` functions return a literal 0 or 1 depending on the type of the given variable or the provided type. They're useful to avoid overheard from unnecessary type conversions. | ||
|
||
The `^` operator can be used to raise a number to a specific power. The `\` operator is the inverse divide operator, which flips the arguments of `/`. The dollar sign `$` is the XOR operator. | ||
|
||
In Julia, comparisons can be chained. | ||
|
||
``` julia | ||
1 < 2 <= 2 < 3 == 3 > 2 >= 1 == 1 < 3 != 5 | ||
``` | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: RabbitMQ | ||
published: July 27, 2014 | ||
excerpt: Open source AMQP-compliant message broker | ||
comments: off | ||
toc: left | ||
--- | ||
|
||
For every TCP connection there could be multiple channels through which AMQP commands may be sent, each channel with its own unique ID. There are three parts to successful routing of an AMQP message: exchanges, queues, and bindings. Exchanges are where produces publish messages, bindings are how messages get routed from an exchange to a given queue, and queues are where messages end up. | ||
|
||
*[AMQP]: Advanced Message Queuing Protocol | ||
|
||
Consumers can receive messages from a queue by subscribing with `basic.consume`, which automatically takes another message off of the queue after consuming or rejecting the previous one. Alternatively, it's possible to consume a single message off of the queue using `basic.get`, which essentially subscribes to the queue and unsubscribes after retrieving a single message. | ||
|
||
If a message arrives at a queue and there are no subscribed consumers, it waits there until one subscribes and consumes it off of the queue. Conversely, if there are multiple consumers, messages are served to them in a round-robin fashion. Messages that are published to an exchange that has no queue to be routed to are discarded by RabbitMQ. | ||
|
||
Every consumed message must be acknowledged either by sending an explicit acknowledge with `basic.ack` or setting the `auto_ack` parameter to true when subscribing to the queue, which automatically considers a message to be acknowledge as soon as the consumer receives it. | ||
|
||
If a consumer receives a message and disconnects before acknowledging, RabbitMQ redelivers it to the next subscribed consumer. If instead a consumer simply forgets to acknowledge a message, it won't be sent anymore messages since it assumes that the consumer isn't finished processing the unacknowledged message. | ||
|
||
It's possible to explicitly reject a message instead of acknowledging it, either by disconnecting from RabbitMQ or on RabbitMQ > 2.0 using the `basic.reject` command. Using `basic.reject`, if the `requeue` parameter is set to true, RabbitMQ will redeliver the message to the next subscribed consumer. In future versions of RabbitMQ, setting the `requeue` parameter to false can send the message to a dead letter queue which can be used for inspection. Alternatively, a message can be discarded by simply acknowledging it. | ||
|
||
Queues can be created by consumers or producers using the `queue.declare` command, but consumers can't declare a queue while subscribed to another on the same channel. Consumers must first unsubscribe, placing the queue in transmit mode. If a queue name isn't provided, a random one is created. | ||
|
||
Queues can be set as exclusive or auto-delete. Exclusive makes the queue private so that it can only be consumed by one consumer. Auto-delete automatically deletes the queue when the last consumer unsubscribes. | ||
|
||
If an existing queue is declared, and all parameters match the existing queue, RabbitMQ considers the declaration successful and fail otherwise. A queue can be checked for existence by setting the `passive` parameter to true. | ||
|
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+42.3 KB
input/images/notes/machine-learning/bias-variance-tradeoff/average-hypothesis.png
Oops, something went wrong.
Binary file added
BIN
+76.4 KB
.../notes/machine-learning/bias-variance-tradeoff/bias-variance-learning-curve.png
Oops, something went wrong.
Binary file added
BIN
+66.3 KB
...images/notes/machine-learning/bias-variance-tradeoff/complex-learning-curve.png
Oops, something went wrong.
Binary file added
BIN
+43.9 KB
input/images/notes/machine-learning/bias-variance-tradeoff/constant-model.png
Oops, something went wrong.
Binary file added
BIN
+37.9 KB
...mages/notes/machine-learning/bias-variance-tradeoff/learning-constant-model.png
Oops, something went wrong.
Binary file added
BIN
+45.3 KB
.../images/notes/machine-learning/bias-variance-tradeoff/learning-linear-model.png
Oops, something went wrong.
Binary file added
BIN
+56.6 KB
...ges/notes/machine-learning/bias-variance-tradeoff/linear-average-hypothesis.png
Oops, something went wrong.
Binary file added
BIN
+51.6 KB
input/images/notes/machine-learning/bias-variance-tradeoff/linear-model.png
Oops, something went wrong.
Binary file added
BIN
+100 KB
...es/notes/machine-learning/bias-variance-tradeoff/linear-multiple-hypotheses.png
Oops, something went wrong.
Binary file added
BIN
+58.1 KB
...es/machine-learning/bias-variance-tradeoff/linear-regression-learning-curve.png
Oops, something went wrong.
Binary file added
BIN
+36.3 KB
input/images/notes/machine-learning/bias-variance-tradeoff/multiple-hypotheses.png
Oops, something went wrong.
Binary file added
BIN
+55.8 KB
.../images/notes/machine-learning/bias-variance-tradeoff/simple-learning-curve.png
Oops, something went wrong.
Binary file added
BIN
+90.8 KB
input/images/notes/machine-learning/bias-variance-tradeoff/vc-learning-curve.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+10.3 KB
input/images/notes/machine-learning/kernel-methods/margin-violation.png
Oops, something went wrong.
Binary file added
BIN
+7.86 KB
.../images/notes/machine-learning/kernel-methods/radial-basis-function-example.png
Oops, something went wrong.
Binary file added
BIN
+6.3 KB
input/images/notes/machine-learning/kernel-methods/seriously-non-separable.png
Oops, something went wrong.
Binary file added
BIN
+3.75 KB
input/images/notes/machine-learning/kernel-methods/slightly-non-separable.png
Oops, something went wrong.
Binary file added
BIN
+57.3 KB
input/images/notes/machine-learning/kernel-methods/types-of-support-vectors.png
Oops, something went wrong.
Binary file added
BIN
+49.3 KB
...images/notes/machine-learning/linear-model-ii/non-linear-case-1-transformed.png
Oops, something went wrong.
Binary file added
BIN
+39.9 KB
input/images/notes/machine-learning/linear-model-ii/non-linear-case-1.png
Oops, something went wrong.
Binary file added
BIN
+40.6 KB
input/images/notes/machine-learning/linear-model-ii/non-linear-case-2.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+37.1 KB
input/images/notes/machine-learning/neural-networks/backpropagated-delta.png
Oops, something went wrong.
Binary file added
BIN
+103 KB
input/images/notes/machine-learning/neural-networks/circular-perceptron-model.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+13.9 KB
input/images/notes/machine-learning/neural-networks/impossible-perceptron-left.png
Oops, something went wrong.
Binary file added
BIN
+13.5 KB
...t/images/notes/machine-learning/neural-networks/impossible-perceptron-right.png
Oops, something went wrong.
Binary file added
BIN
+17.5 KB
input/images/notes/machine-learning/neural-networks/impossible-perceptron.png
Oops, something went wrong.
Binary file added
BIN
+136 KB
input/images/notes/machine-learning/neural-networks/multilayer-perceptron.png
Oops, something went wrong.
Binary file added
BIN
+153 KB
input/images/notes/machine-learning/neural-networks/neural-network.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+73.5 KB
input/images/notes/machine-learning/neural-networks/simple-layers.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+55.4 KB
input/images/notes/machine-learning/overfitting/deterministic-noise.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+61.1 KB
input/images/notes/machine-learning/overfitting/polynomial-overfit.png
Oops, something went wrong.
Binary file added
BIN
+5.11 KB
input/images/notes/machine-learning/radial-basis-functions/large-gamma.png
Oops, something went wrong.
Binary file added
BIN
+7.59 KB
input/images/notes/machine-learning/radial-basis-functions/lloyds-algorithm.png
Oops, something went wrong.
Binary file added
BIN
+20.6 KB
...es/machine-learning/radial-basis-functions/nearest-neighbors-basis-function.png
Oops, something went wrong.
Binary file added
BIN
+12.1 KB
input/images/notes/machine-learning/radial-basis-functions/nearest-neighbors.png
Oops, something went wrong.
Binary file added
BIN
+12.1 KB
input/images/notes/machine-learning/radial-basis-functions/neural-network.png
Oops, something went wrong.
Binary file added
BIN
+6.38 KB
input/images/notes/machine-learning/radial-basis-functions/rbf-centers.png
Oops, something went wrong.
Binary file added
BIN
+12.9 KB
input/images/notes/machine-learning/radial-basis-functions/rbf-example.png
Oops, something went wrong.
Binary file added
BIN
+12.7 KB
input/images/notes/machine-learning/radial-basis-functions/rbf-network.png
Oops, something went wrong.
Binary file added
BIN
+7.99 KB
input/images/notes/machine-learning/radial-basis-functions/rbf-vs-svm.png
Oops, something went wrong.
Binary file added
BIN
+5.56 KB
input/images/notes/machine-learning/radial-basis-functions/small-gamma.png
Oops, something went wrong.
Binary file added
BIN
+75.1 KB
...images/notes/machine-learning/regularization/lambda-for-deterministic-noise.png
Oops, something went wrong.
Binary file added
BIN
+70.8 KB
input/images/notes/machine-learning/regularization/lambda-for-stochastic-noise.png
Oops, something went wrong.
Binary file added
BIN
+50.7 KB
input/images/notes/machine-learning/regularization/lambda-variation-1.png
Oops, something went wrong.
Binary file added
BIN
+40.8 KB
input/images/notes/machine-learning/regularization/lambda-variation-2.png
Oops, something went wrong.
Binary file added
BIN
+88.8 KB
input/images/notes/machine-learning/regularization/legendre-polynomials.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+65.5 KB
input/images/notes/machine-learning/regularization/solution-vectors.png
Oops, something went wrong.
Binary file added
BIN
+52.3 KB
input/images/notes/machine-learning/regularization/solution-visualization.png
Oops, something went wrong.
Binary file added
BIN
+2.39 KB
input/images/notes/machine-learning/support-vector-machines/distance.png
Oops, something went wrong.
Binary file added
BIN
+16.6 KB
input/images/notes/machine-learning/support-vector-machines/margin-dichotomies.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+5.83 KB
input/images/notes/machine-learning/support-vector-machines/support-vectors.png
Oops, something went wrong.
Binary file added
BIN
+5.66 KB
...mages/notes/machine-learning/support-vector-machines/x-space-non-linear-svm.png
Oops, something went wrong.
Binary file added
BIN
+72.1 KB
input/images/notes/machine-learning/theory-of-generalization/dichotomy-table.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
input/images/notes/machine-learning/three-learning-principles/experiment-a.png
Oops, something went wrong.
Binary file added
BIN
+2.94 KB
input/images/notes/machine-learning/three-learning-principles/experiment-b.png
Oops, something went wrong.
Binary file added
BIN
+2.91 KB
input/images/notes/machine-learning/three-learning-principles/falsifiability.png
Oops, something went wrong.
Binary file added
BIN
+17.9 KB
...ages/notes/machine-learning/three-learning-principles/financial-forecasting.png
Oops, something went wrong.
Binary file added
BIN
+8.04 KB
...images/notes/machine-learning/three-learning-principles/looking-at-the-data.png
Oops, something went wrong.
Binary file added
BIN
+11.8 KB
...notes/machine-learning/three-learning-principles/matching-the-distributions.png
Oops, something went wrong.
Binary file added
BIN
+15.4 KB
input/images/notes/machine-learning/training-versus-testing/breaking-point.png
Oops, something went wrong.
Binary file added
BIN
+51.7 KB
...ages/notes/machine-learning/training-versus-testing/convex-region-dichotomy.png
Oops, something went wrong.
Binary file added
BIN
+12.2 KB
input/images/notes/machine-learning/training-versus-testing/convex-region.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+45.7 KB
input/images/notes/machine-learning/training-versus-testing/e-out.png
Oops, something went wrong.
Binary file added
BIN
+21.4 KB
input/images/notes/machine-learning/training-versus-testing/non-convex-region.png
Oops, something went wrong.
Binary file added
BIN
+34.3 KB
input/images/notes/machine-learning/training-versus-testing/perceptron-overlap.png
Oops, something went wrong.
Binary file added
BIN
+3.41 KB
...otes/machine-learning/training-versus-testing/positive-interval-break-point.png
Oops, something went wrong.
Binary file added
BIN
+68.5 KB
input/images/notes/machine-learning/training-versus-testing/positive-intervals.png
Oops, something went wrong.
Binary file added
BIN
+2.17 KB
...ges/notes/machine-learning/training-versus-testing/positive-ray-break-point.png
Oops, something went wrong.
Binary file added
BIN
+42.8 KB
input/images/notes/machine-learning/training-versus-testing/positive-rays.png
Oops, something went wrong.
Binary file added
BIN
+4.97 KB
...t/images/notes/machine-learning/validation/cross-validation-model-selection.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+8.17 KB
input/images/notes/machine-learning/validation/digits-classification-2.png
Oops, something went wrong.
Binary file added
BIN
+36.6 KB
input/images/notes/machine-learning/validation/digits-classification.png
Oops, something went wrong.
Binary file added
BIN
+4.05 KB
input/images/notes/machine-learning/validation/leave-more-than-one-out.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+19.9 KB
input/images/notes/machine-learning/validation/without-validation.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
$(function() { | ||
var mobilenav = $('#mobile-nav'); | ||
|
||
$('html').click(function(){ | ||
mobilenav.find('.on').each(function(){ | ||
$(this).removeClass('on').next().hide(); | ||
}); | ||
}); | ||
|
||
mobilenav.on('click', '.menu .button', function(e){ | ||
if (!$(this).hasClass('on')) { | ||
var width = $(this).width() + 42; | ||
$(this).addClass('on').next().css({width: width}).show(); | ||
} else { | ||
$(this).removeClass('on').next().hide(); | ||
} | ||
}).on('click', '.search .button', function(e){ | ||
if (!$(this).hasClass('on')){ | ||
var width = mobilenav.width() - 51; | ||
mobilenav.children('.menu').children().eq(0).removeClass('on').next().hide(); | ||
$(this).addClass('on').next().show().css({width: width}).children().children().eq(0).focus(); | ||
} else { | ||
$(this).removeClass('on').next().hide().children().children().eq(0).val(''); | ||
} | ||
}).click(function(e){ | ||
e.stopPropagation(); | ||
}); | ||
|
||
var $nav = $('#main-nav .main'); | ||
|
||
var toggleForm = function(button, form) { | ||
button.click(function() { | ||
if (form.is(':visible')) { | ||
form.fadeOut('fast'); | ||
} else { | ||
form.fadeIn('fast'); | ||
form.find('input').focus(); | ||
} | ||
}); | ||
|
||
form.find('input').keyup(function(e) { | ||
if (e.keyCode == 27) { | ||
form.fadeOut('fast'); | ||
} | ||
}); | ||
}; | ||
|
||
toggleForm($('#search_btn'), $('.desk_search')); | ||
|
||
window.refresh = function () { | ||
$('.collapse').not(function() { | ||
return "#" + $(this).attr('id') == window.location.hash; | ||
}).next('.collapsible').hide(); | ||
|
||
$('.collapse').click(function(e) { | ||
e.preventDefault(); | ||
$(this) | ||
.next('.collapsible') | ||
.slideToggle('fast'); | ||
}); | ||
|
||
var $footnotes = $('.footnotes > ol > li'); | ||
|
||
$('.footnoteRef') | ||
.attr('title', 'read footnote') | ||
.click(function() { | ||
$footnotes.stop(true, true) | ||
|
||
var note = $(this).attr('href'); | ||
$footnotes.not(note) | ||
.css({opacity: 0.1}) | ||
.animate({opacity: 1.0}, 15000, 'linear'); | ||
}); | ||
|
||
$('a[href^="#fnref"]') | ||
.attr('title', 'continue reading') | ||
.html('<i class="fa fa-level-up"></i>') | ||
.click(function() { | ||
$footnotes.stop(true, true); | ||
}); | ||
|
||
}; | ||
|
||
window.refresh(); | ||
}); |
Oops, something went wrong.