This file contains 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 numpy as np | |
from copy import deepcopy | |
n = 100 | |
out_data = deepcopy(in_data) | |
out_data.X[out_data.X < n] = 0 | |
ar = np.argwhere(out_data.X) | |
cols, shifts = np.unique(ar[:, 1], return_counts=True) | |
out_data.X = np.array([np.roll(out_data.X[:, col], shift) for col, shift in zip(cols, shifts)]).T |
This file contains 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
/* Firefox Quantum userChrome.css tweaks ************************************************/ | |
/* Github: https://github.com/aris-t2/customcssforfx ************************************/ | |
/****************************************************************************************/ | |
/* NOTE ********************************************************************************/ | |
/* Variables are set inside '.\config\' folders CSS files, if complete package is used! */ | |
:root { | |
--colored_menubar_background_image: linear-gradient(#f9f9fa,#f9f9fa); |
This file contains 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
from Orange.data import Table | |
from Orange.widgets import gui | |
from Orange.widgets.widget import OWWidget | |
from AnyQt.QtWidgets import QApplication, QLabel | |
from orangecontrib.text import Corpus | |
class OWWordFinder(OWWidget): | |
name = "Word Finder" | |
description = "Display whether a word is in a text or not." |