Skip to content

Instantly share code, notes, and snippets.

View devLukaDev's full-sized avatar

Luka devLukaDev

View GitHub Profile
self.train_set = [] # initialise self.train_set
self.feature_map = feature_map
self.train_set = train_sents(self.create_training_data)
# TODO: store the feature_map parameter as self.feature_map
# TODO: call self.create_training_data on train_sents
# TODO: check that algorithm is one of "NaiveBayes", "DecisionTree", "IIS", and "GIS"
# and raise an error if it's not
if algorithm !== "NaiveBayes" or algorithm !== "DicisionTree" or algorithm !== "IIS" algorithm !== "GIS":
@devLukaDev
devLukaDev / features.py
Created June 8, 2022 11:34
Hw2 features
def test_features(sentence, i, history):
"""Chunker features designed to test the Chunker class for correctness
- the POS tag of the word
- the entire history of IOB tags so far
formatted as a tuple because it needs to be hashable
"""
word, pos = sentence[i]
return {
"pos": pos,
"whole history": tuple(history)
namespace MNP
{
internal class Program
{
static void Main(string[] args)
{
//Code here
}
}
}
classDiagram
Ticket "1"<|-- "0-1"DiscountedTicket
Ticket "1"<|--"0-1" SingleTicket
Ticket "1"<|--"0-1" ReturnTicket
TicketProcess "1" *-- "1" Payment
TicketProcess "1" *-- "*" Ticket
TicketProcess "1" *-- "1" TicketPrinter
Payment "1"<|-- "0-1" CoinPayment
Payment "1" <|-- "0-1" CardPayment
DiscountedTicket "1"*--"1" RailcardReader
classDiagram
%% Bord "1"<|-- "0-*" Kuiltje
MankalaSpel "1"*--"1" State
MankalaSpel "1"<|--"1" MankalaV1
WinCheckerV1 "1"<.."1" MankalaV1
MankalaV1Bord "1"<.."1" MankalaV1
RegelVoorbeeld "5"<.."1" MankalaV1
GameManager "1"*--"1" MankalaSpel
WinChecker "1"<|--"1" WinCheckerV1
Regel "1"<|--"1" RegelVoorbeeld
{
"batchcomplete": "",
"query": {
"pages": {
"109635": {
"pageid": 109635,
"ns": 0,
"title": "Feer",
"revisions": [
{
@devLukaDev
devLukaDev / KR5-Alliance-balance.json
Last active July 31, 2024 14:40
Converted balance.lua file from Kingdom Rush 5
// chunkname: @./kr5/balance/balance.lua (JSON-ified by me)
// VERSION 2024/07/31 (ver. kr5 desktop 1.01.06)
{
"werebeasts": {
"hog_invader": {
"speed": 36,
"armor": 0,
"hp": 48,
"gold": 5,
"magic_armor": 0,
[
{
"docid": 1,
"title": "Omgevingsvergunning dakkapel Jan Vrijlandtsingel",
"short_description": "Vergunning voor dakkapel aan de voorzijde van woning.",
"date": "2025-05-16-09:00",
"category": "omgevingsvergunning",
"location": "Jan Vrijlandtsingel 23, 3076 PM, Rotterdam",
"detailed_description": "Het College van Burgemeester en Wethouders van Rotterdam verleent een omgevingsvergunning voor het plaatsen van een dakkapel van circa 4,2 m x 1,5 m op het voordakvlak van de woning aan de Jan Vrijlandtsingel 23. De vergunning werd verleend op 13 mei 2025. Belanghebbenden kunnen binnen zes weken bezwaar indienen bij het college.",
"objection_period": "2025-06-24",
@devLukaDev
devLukaDev / gist:a7c576426e43fcb8ef0a8d54f4653b8f
Created June 2, 2025 20:09
numpy attribute error (entire log)
(INFOGAP) luka@luka-mint:~/Desktop/INFOGAP/infogap$ pip list
Package Version Editable project location
-------------------------- ----------- -----------------------------------------------------
annotated-types 0.7.0
anyio 4.9.0
appdirs 1.4.4
asttokens 3.0.0
beautifulsoup4 4.7.1
bs4 0.0.2
certifi 2025.4.26
import pandas as pd
from scipy.stats import ttest_ind
import numpy as np
from scipy.stats import chi2_contingency
# Replace 'your_file.csv' with the path to your CSV file
df = pd.read_csv('results.csv')
initial = [15] # Interaction order (SELECT WHICH ONE WAS FIRST)
tilt_vs_swipe = [42, 43] # How likely would you like to use to use a system using tilt vs swipe