Skip to content

Instantly share code, notes, and snippets.

@halolimat
halolimat / HMM_pomegranate.py
Created December 7, 2018 16:06
Supervised, Semi-supervised, and Unsupervised variants of HMM using Pomegranate
# coding: utf-8
# Author: Hussein Al-Olimat @halolimat
from urllib.request import urlopen
from itertools import groupby
import sys, random, dill
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn_crfsuite import metrics
@halolimat
halolimat / ReadFileClass.java
Created October 20, 2019 22:58
Read CSV files into List of int arrays in Java 8
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.ArrayList;
public class ReadFileClass {
@halolimat
halolimat / pso.py
Created June 10, 2019 01:45
A module that solves a minimization problem using Particle Swarm Optimization (PSO)
#!/usr/bin/env python
################################################################################
# File name: pso.py #
# Description: A module that solves a minimization problem using PSO #
#------------------------------------------------------------------------------#
# Author: Hussein S. Al-Olimat #
# Email: hussein@knoesis.org #
#------------------------------------------------------------------------------#
# Date-last-modified: Nov 7, 2016 #