Skip to content

Instantly share code, notes, and snippets.

Jakub Mifek JakubMifek

Block or report user

Report or block JakubMifek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View code_that_worked.py
#!/usr/bin/env python3
#
# All team solutions **must** list **all** members of the team.
# The members must be listed using their ReCodEx IDs anywhere
# in a comment block in the source file (on a line beginning with `#`).
#
# You can find out ReCodEx ID in the URL bar after navigating
# to your User profile page. The ID has the following format:
# 310a5c89-3ea1-11e9-b0fd-00505601122b
# 90257956-3ea2-11e9-b0fd-00505601122b
View lemmatizer_attn.py
#!/usr/bin/env python3
import numpy as np
import tensorflow as tf
import decoder
from morpho_dataset import MorphoDataset
class Network:
def __init__(self, args, num_source_chars, num_target_chars):
class Model(tf.keras.Model):
View DL.md

Morpho

Batch:

  • forms
  • lemmas
  • tags

We have sentences and want to predict classes (nouns, verbs, ..)

  • we can specify mask which specifies number of words in sentence and "disables" parts of NN which will not be used (since we have less data). This will influence even the loss function
  • 1 for used place, 0 for not used (tf.keras.layers.Masking)
View MLinBio.md

5. 4. 2019

Feature engineering - increases data dimensionality

View creation.shell
jakub@Marvn:~/Projects$ lb4 project
? Project description: project
? Project root directory: project
? Application class name: ProjectApplication
? Select features to enable in the project Enable tslint, Enable prettier, Enable moch
a, Enable loopbackBuild, Enable vscode, Enable repositories, Enable services
create .npmrc
create .prettierignore
create .prettierrc
create DEVELOPING.md
View script.r
attach(train)
m.tree <- rpart(mpg01 ~ ., train)
rpart.plot(m.tree)
prediction.m.tree <- predict(m.tree, test, type="class")
table(prediction.m.tree)
m.tree.cm <- table(prediction.m.tree, test$mpg01)
m.tree.cm
message("Accuracy = ", sum(diag(m.tree.cm))/78)
@JakubMifek
JakubMifek / filter.py
Last active Sep 26, 2018
Filter for snapshots
View filter.py
import io
import json
import sys
def tokenize(line):
return [token.strip() for token in line.split(':')]
def getSnapshot(line, idx, f):
@JakubMifek
JakubMifek / alfabeta.java
Last active Sep 2, 2018
Alfa-Beta algoritmus pro Walight UI I HW
View alfabeta.java
package conquest.bot.playground;
import conquest.bot.state.*;
import conquest.game.Player;
import conquest.game.world.Continent;
import conquest.game.world.Region;
import java.util.*;
interface IApplicable {
View findAllEndings.bash
find . -type f -name '*.*' | sed 's|.*\.|.|' | sort -u
View Main.cs
private static void Main()
{
Config.Instance.Load("config.config");
AppDomain.CurrentDomain.ProcessExit += (sender, args) =>
{
Config.Instance.Save("config.config");
Config.Instance["exit"] = true;
};
MainLogger.Instance.Log("Program", Priority.Info, "Program has started.");
You can’t perform that action at this time.