Skip to content

Instantly share code, notes, and snippets.

View mustmodify's full-sized avatar

Johnathon E Wright mustmodify

View GitHub Profile
THe category-based scores are independent of the other. WNFE obtained 0.599 from 2000
features; this value makes it better than the PNTFA approach but not as good as ICBA approach.
PNTFA obtained the lowest f-measure value (0.475) from 500 features and the highest f-measure
value (0.515) using 9052 features. However, when statistical analysis was performed, there was
no difference between the result of 500 features and 9052 features. Thus, the f-measure value 0.475
(obtained using 500 features) was used. Merging best feature approach obtained an f-measure value of 0.661
from 2557 features. It was not as precise a score as is achieved by the collective-based approach.
The overall result of the multi feature experiment is in table 2. The collective-based approach incorporates
the collection of all kinds of features. The highest f-measure value achieved using that method was 0.705, using 20000 features.
format.js do
@order = params[:orders]}
end
format :js { render :action => 'create', :locals => {:order => params[:orders]}}
@mustmodify
mustmodify / app.js
Last active December 20, 2015 09:09
A gist that you can use in plnkr as a baseline angularjs app... for demonstrating your problems / confusion. Based on https://gist.github.com/ProLoser/3172544 ... edited because of issues with raw.github.com mime type.
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
});
brand new slice as root:
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libxml2-dev libxslt-dev libreadline6-dev libyaml-dev libmysqlclient-dev
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar -xvzf ruby-2.1.2.tar.gz
cd ruby-2.1.2-p<tab>
./configure --prefix=/usr/local
@mustmodify
mustmodify / app.js
Last active December 17, 2015 02:09
This gist is my attempt to get MapQuest to work with AngularJS templates.
// NOTE: ng-app="plunker" + AngularUI module dependency
var app = angular.module('map-app', []);
app.controller('MapCtrl', function($scope) {
$scope.address = function()
{
out = "";
if( $scope.location.street1 != undefined )
{
@mustmodify
mustmodify / chef_solo_bootstrap.sh
Created July 3, 2012 18:48 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo with MRI 1.9.3
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libmysqlclient-dev libyaml-dev
export RUBY_MAJOR_VER='1.9'
export RUBY_FULL_VER='ruby-1.9.3-p194'
export RUBY_GEMS_VERSION='1.7.2'
cd /tmp
wget http://rubyforge.org/frs/download.php/74619/rubygems-1.7.2.tgz
@mustmodify
mustmodify / chef_solo_bootstrap.sh
Created June 28, 2012 21:34 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo with MRI 1.8.7
#!/usr/bin/env bash
# based on http://railscasts.com/episodes/339-chef-solo-basics?autoplay=true
# Some of my clients' projects are still on 1.8
# expects to be run on Ubuntu 12+
export RUBY_MAJOR_VER='1.8'
export RUBY_FULL_VER='ruby-1.8.7-p358'
export RUBY_GEMS_VERSION='1.6.2'