Skip to content

Instantly share code, notes, and snippets.

Jakub Mifek JakubMifek

View GitHub Profile
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.");
View xslt.xslt
<?xml version="1.0" encoding="windows-1250" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="panovnici">
<kings>
<xsl:apply-templates/>
@JakubMifek
JakubMifek / GetOutputError.m
Created Jan 10, 2018
Function for computing error of two logical vectors
View GetOutputError.m
function error = GetOutputError( A, B )
%GETOUTPUTERROR Summary of this function goes here
% Detailed explanation goes here
error = sum(abs(A - B));
end
You can’t perform that action at this time.