Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Saran Ahluwalia ahlusar1989

🎯
Focusing
View GitHub Profile
View hellwig.R
#' Hellwig's method for choosing subset of independet variables
#'
#' Hellwig's method selects a subset of independent variables in a linear
#' regression model based on their correlations with some dependent variable as
#' well as correlations between themselves. The goal is to select a subset of
#' variables which are fairly independent from each other but highly correlated
#' with the dependent variable.
#'
#' Given \eqn{m} independent variables Hellwig's method consists of evaluating
#' all \eqn{2^m - 1} combinations using the following steps:
View gibbs.text
---
generator: pandoc
title: Gibbs sampling
viewport: 'width=device-width, initial-scale=1'
---
::: {.container-fluid .main-container}
::: {#header .fluid-row}
Gibbs sampling {#gibbs-sampling .title .toc-ignore}
==============
View gibbs.md
generator title viewport
pandoc
Gibbs sampling
width=device-width, initial-scale=1

::: {.container-fluid .main-container} ::: {#header .fluid-row} Gibbs sampling {#gibbs-sampling .title .toc-ignore}

View r_smoothed.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View variaitional_auto_encoder.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahlusar1989
ahlusar1989 / YeoJohnson.py
Created Jun 13, 2019 — forked from mesgarpour/YeoJohnson.py
Yeo-Johnson Transformation
View YeoJohnson.py
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import warnings
import numpy as np
import pandas as pd
import sys
__author__ = "Mohsen Mesgarpour"
__copyright__ = "Copyright 2016, https://github.com/mesgarpour"
__credits__ = ["Mohsen Mesgarpour"]
View unemployment.csv
FIPS_code County State unemployment
01001 Autauga County Alabama 5.9
01003 Baldwin County Alabama 6.1
01005 Barbour County Alabama 10.5
01007 Bibb County Alabama 7.2
01009 Blount County Alabama 6.1
01011 Bullock County Alabama 8.8
01013 Butler County Alabama 8.5
01015 Calhoun County Alabama 8.0
01017 Chambers County Alabama 6.7
View routes.js
import React from 'react';
import App from './containers/AppContainer';
import Login from './containers/LoginContainer';
import Signup from './containers/SignUpContainer';
import MapContainer from './containers/MapContainer';
import ListingsContainer from './containers/ListingsContainer';
import createBrowserHistory from 'history/createBrowserHistory'
import { Router, Route, Switch, Redirect } from 'react-router-dom';
const history = createBrowserHistory()
View map.html
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<style>
</style>
<script type="text/javascript">
function now() {
return new Date().toLocaleDateString()
}
</script>
View route.js
const jsreport = require("jsreport-core")();
const { fetchReportTemplate } = require("../reports/report-template");
const router = require('express').Router()
const fs = require('fs');
const express = require('express');
const path = require('path');
const reportingApp = express();
jsreport.use(require('jsreport-express')({ app: reportingApp }));
jsreport.use(require('jsreport-chrome-pdf')());
You can’t perform that action at this time.