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
import math | |
import sys | |
class seg_tree: | |
def __init__(self,arr): | |
x = int(math.ceil(math.log(len(arr)) / math.log(2))) | |
print "x",x | |
self.seg_arr = [0 for i in range(0, 2*2**x)] | |
self.index = 0 | |
self.low = 0 | |
self.high = len(arr)-1 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<?php | |
/* | |
/*@filename:upload_file.php | |
/*@author:Kris Singh<cs15mtech11007@iith.ac.in> | |
/*@Date:15/06/2016 | |
/*@package name :bump server | |
*/ | |
//get data from the server and visulise it in a heat map form | |
require 'db_connection.php'; | |
function get_contents($date){ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#include <mlpack/core.hpp> | |
#include <armadillo> | |
#include <iostream> | |
#include <typeinfo> | |
using namespace std; | |
using namespace mlpack; | |
class GaussianInitialization | |
{ | |
public: |
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
/** | |
* @file example.cpp | |
* @author Marcus Edel | |
* | |
* Simple random agent. | |
*/ | |
#include <iostream> | |
#include "environment.hpp" |
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
sgd.hpp file | |
---------------------------------------------------------------------------------------------- | |
enum decay_type {no_decay = 0, t_decay=1, exponential_decay=4 , step_decay=3} | |
... SGD { | |
SGD(DecomposableFunctionType& function, | |
const double stepSize = 0.01, | |
const size_t maxIterations = 100000, | |
const double tolerance = 1e-5, |
OlderNewer