This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace MNP | |
| { | |
| internal class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| //Code here | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "batchcomplete": "", | |
| "query": { | |
| "pages": { | |
| "109635": { | |
| "pageid": 109635, | |
| "ns": 0, | |
| "title": "Feer", | |
| "revisions": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
OlderNewer