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
# coding: utf-8 | |
"""Test doctest contained tests in every file of the module. | |
""" | |
import configparser | |
import doctest | |
import importlib | |
import json | |
import gzip | |
import os |
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
# https://gist.github.com/althonos/6914b896789d3f2078d1e6237642c35c | |
[metadata] | |
name = {name} | |
version = file: {name}/_version.txt | |
author = Martin Larralde | |
author_email = [email protected] | |
url = https://github.com/althonos/{name} | |
description = {description} | |
long_description = file: README.md |
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
# coding: utf-8 | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
import io | |
import ftplib | |
import posixpath | |
ftp = ftplib.FTP("ftp.ebi.ac.uk") |
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 sklearn | |
import fisher | |
class SelectPValueUnderThreshold(sklearn.base.TransformerMixin): | |
"""Select features with Fisher p-value under a certain threshold. | |
""" | |
def __init__(self, threshold=1.0): | |
self.threshold = threshold | |
self.features_ = None |
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 imports import imports | |
@imports("torch.cuda") | |
def is_cuda_available(): | |
return torch.cuda.is_available() |