Skip to content

Instantly share code, notes, and snippets.

View dvdblk's full-sized avatar
😹
delulu

David Alex Bielik dvdblk

😹
delulu
View GitHub Profile
@dvdblk
dvdblk / DFAinput.txt
Last active January 16, 2017 14:37
Creates a union from two DFA's
3
3
1
2
1 2
2 3 3
2 2 2
3 3 3
3
@dvdblk
dvdblk / calculator.hs
Last active January 16, 2017 14:36
Haskell calculator
import Data.List
type Operator a = a -> a -> a
type Compute = [String] -> [String]
-- isDigit for strings from Data.Char
isDigit :: String -> Bool
isDigit [] = True
isDigit (x:xs) = (f >= 48) && (f <= 57) && isDigit xs where f = fromEnum x
@dvdblk
dvdblk / practice.hs
Created January 16, 2017 13:29
Haskell Functions
--- implementation of useful haskell functions
--- http://fi.muny.cz/data/IB015/IB015-neimp-funkcie.pdf
myAll :: (a -> Bool) -> [a] -> Bool
myAll _ [] = True
myAll predicate (x:l) = if not (predicate x) then False else myAll predicate l
myAnd :: [Bool] -> Bool
myAnd = foldr1 (&&)
@dvdblk
dvdblk / Weather.hs
Last active May 25, 2018 21:55
IB016 HW04
{- |
Fourth assignment for IB016, semester spring 2017, 20 points.
== Obtaining weather information from <http://openweathermap.org openweathermap.org>
This time, your task is to implement downloading and processing of weather data
from <http://openweathermap.org>.
You are given a partially implemented module (some data type definitions, 'main',
argument parsing and dispatch functions). Do not change any of the code
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dvdblk
dvdblk / crf_eval.txt
Created December 12, 2019 17:11
ML4NLP Exercise 04 - Model Evaluation
STRICT: Found: 1162 outer and 0 inner phrases; Gold: 6177 (outer) and 0 (inner).
LOOSE: Found: 1162 outer and 0 inner phrases; Gold: 6177 (outer) and 0 (inner).
1. Strict, Combined Evaluation (official):
Accuracy: 95.75%;
Precision: 67.81%;
Recall: 12.76%;
FB1: 21.47
2. Loose, Combined Evaluation: