Example Using Decision Tree using ID3 Algorithm
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
#!/usr/bin/env bash | |
# | |
# Minimal Travis Set-up Script | |
# | |
# This script sets-up a minimal TexLive 2015 distribution with the | |
# additional packages being installed when needed. This is intended | |
# for Travis continuous integration and is expected to work with the | |
# Ubuntu Trusty (14.04) Distribution | |
# | |
# Copyright (C) 2018 Lester James V. Miranda <[email protected]> |
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
const axios = require('axios'); | |
const http = require('http'); | |
const https = require('https'); | |
module.exports = axios.create({ | |
//60 sec timeout | |
timeout: 60000, | |
//keepAlive pools and reuses TCP connections, so it's faster | |
httpAgent: new http.Agent({ keepAlive: true }), |
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
/** | |
* Calculate VWAP (volume weighted average price) for a list of bids. | |
* | |
* @param {number} total - Total shares bought. | |
* @param {Array<number, number>} positions - Tuples of position data. The first | |
* index is the amount of shares, the | |
* second index is the price of the | |
* shares. | |
* | |
* @example |