python_code
stringlengths
0
679k
repo_name
stringlengths
9
41
file_path
stringlengths
6
149
from .rolling import Rolling from numba import cuda import math import numba number_of_threads = 128 def diff(in_arr, n): if n < 0: return Rolling(1, in_arr, forward_window=-n).forward_diff() elif n > 0: return Rolling(n + 1, in_arr).backward_diff() else: return in_arr def shif...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/cuindicator/util.py
from numba import cuda import numba from .windows import (portfolio_ewma_mean_window) kernel_cache = {} def get_ewm_kernel(method): if method in kernel_cache: return kernel_cache[method] @cuda.jit def kernel(asset_indicator, in_arr, out_arr, average_length, span, arr_len, thread_...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/cuindicator/pewm.py
from .util import shift, diff from .rolling import Rolling from .ewm import Ewm from .pewm import PEwm import cudf import collections import math import numba from .util import (substract, summation, multiply, division, upDownMove, abs_arr, true_range, lowhigh_diff, money_flow, ...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/cuindicator/indicator.py
from .ewm import Ewm from .indicator import * # noqa: F403, F401 from .pewm import PEwm from .rolling import Rolling from .util import (shift, diff, substract, summation, multiply, division, scale, cumsum) from .frac_diff import (fractional_diff, get_weights_floored, port_fra...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/cuindicator/__init__.py
from numba import cuda import numba from .windows import (mean_window, std_window, var_window, min_window, max_window, sum_window, backward_diff_window, backward_shift_window, forward_diff_window, forward_shift...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/cuindicator/rolling.py
import numba import cmath import numpy as np from numba import cuda from .util import port_mask_nan __all__ = ["fractional_diff", "get_weights_floored", "port_fractional_diff"] def get_weights_floored(d, num_k, floor=1e-3): r"""Calculate weights ($w$) for each lag ($k$) through $w_k = -w_{k-1} \frac{d - k + ...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/cuindicator/frac_diff.py
import numpy as np import math from numba import cuda import cmath @cuda.jit(device=True) def window_kernel(shared, history_len, future_len, out_arr, window_size, forward_window_size, arr_len, offset, min_size): """ This function is to do window computation. Only one thread is assumed to...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/cuindicator/windows.py
from greenflow.dataframe_flow import Node, PortsSpecSchema from greenflow.dataframe_flow.portsSpecSchema import ConfSchema from greenflow.dataframe_flow.metaSpec import MetaDataSchema from greenflow.dataframe_flow.template_node_mixin import TemplateNodeMixin from ..node_hdf_cache import NodeHDFCacheMixin __all__ = ['X...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/strategy/xgboostStrategyNode.py
from .movingAverageStrategyNode import MovingAverageStrategyNode from .portExpMovingAverageStrategyNode import PortExpMovingAverageStrategyNode from .xgboostStrategyNode import XGBoostStrategyNode __all__ = ["MovingAverageStrategyNode", "PortExpMovingAverageStrategyNode", "XGBoostStrategyNode"]
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/strategy/__init__.py
from numba import cuda from functools import partial import math import numpy as np import cudf import pandas as pd from greenflow.dataframe_flow import Node, PortsSpecSchema from greenflow.dataframe_flow.portsSpecSchema import ConfSchema from greenflow.dataframe_flow.metaSpec import MetaDataSchema from greenflow.data...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/strategy/portExpMovingAverageStrategyNode.py
from .. import cuindicator as ci from greenflow.dataframe_flow import Node, PortsSpecSchema from numba import cuda import math import numpy as np import cudf from greenflow.dataframe_flow.portsSpecSchema import ConfSchema from greenflow.dataframe_flow.metaSpec import MetaDataSchema from greenflow.dataframe_flow.templat...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/strategy/movingAverageStrategyNode.py
class StockMap(object): def __init__(self): pass
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/dataloader/stockMap.py
from greenflow.dataframe_flow import Node import cudf from greenflow.dataframe_flow.portsSpecSchema import ( PortsSpecSchema, NodePorts, ConfSchema) from greenflow.dataframe_flow.metaSpec import MetaData from ..cache import CACHE_NAME from greenflow.dataframe_flow.util import get_file_path from .stockMap import St...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/dataloader/stockNameLoader.py
from greenflow.dataframe_flow import Node from greenflow.dataframe_flow.portsSpecSchema import ( PortsSpecSchema, NodePorts, ConfSchema) from greenflow.dataframe_flow.metaSpec import MetaData import cudf import dask_cudf import cuml import copy import cuml.dask.datasets.classification from ..node_hdf_cache import N...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/dataloader/classificationGenerator.py
from .csvStockLoader import CsvStockLoader from .stockNameLoader import StockNameLoader from .classificationGenerator import ClassificationData __all__ = ["CsvStockLoader", "StockNameLoader", "ClassificationData"]
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/dataloader/__init__.py
from greenflow.dataframe_flow import Node from greenflow.dataframe_flow.portsSpecSchema import ( PortsSpecSchema, NodePorts, ConfSchema) from greenflow.dataframe_flow.metaSpec import MetaData import cudf import dask_cudf import pandas as pd from greenflow.dataframe_flow.util import get_file_path from ..node_hdf_cac...
fsi-samples-main
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/dataloader/csvStockLoader.py
import greenflow from greenflow.dataframe_flow.portsSpecSchema import ConfSchema import json data = """{ "conf": { "input": [ "train_norm.df_in", "test_norm.df_in" ], "output": [ "train_infer.out", "test_infer.out", "train_xgboost.model_out", "train_norm.df_out", ...
fsi-samples-main
gQuant/plugins/gquant_plugin/modules/my_node.py
import math import numpy as np from numba import cuda import cupy import cudf import dask_cudf import dask from greenflow.dataframe_flow import Node, MetaData from greenflow.dataframe_flow import NodePorts, PortsSpecSchema from greenflow.dataframe_flow import ConfSchema import copy class PointNode(Node): def por...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/custom_port_nodes.py
import ipywidgets as widgets def getXGBoostWidget(replace_spec, task_graph, plot_figures): def getRangeSlider(val0, val1, des=""): return widgets.IntRangeSlider(value=[val0, val1], min=1, max=60, ...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/plotutils.py
''' ''' import sys from collections import OrderedDict import re import numpy as np from greenflow.dataframe_flow import Node import logging # logging.config.dictConfig({ # 'version': 1, # 'disable_existing_loggers': False # }) _DISTRIB_FORMATTER = None def init_workers_logger(): '''Initialize logger w...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/mortgage_e2e_gquant/mortgage_greenflow_plugins.py
''' ''' import os from greenflow.dataframe_flow import (TaskSpecSchema, TaskGraph) from mortgage_common import ( mortgage_etl_workflow_def, generate_mortgage_greenflow_run_params_list, MortgageTaskNames) def main(): _basedir = os.path.dirname(__file__) # mortgage_data_path = '/datasets/rapids_data...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/mortgage_e2e_gquant/mortgage_run_workflow_local.py
''' Collection of functions to run the mortgage example. ''' import os from glob import glob class MortgageTaskNames(object): '''Task names commonly used by scripts for naming tasks when creating a greenflow mortgage workflow. ''' load_acqdata_task_name = 'acqdata' load_perfdata_task_name = 'perfd...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/mortgage_e2e_gquant/mortgage_common.py
''' ''' import os try: # Disable NCCL P2P. Only necessary for versions of NCCL < 2.4 # https://rapidsai.github.io/projects/cudf/en/0.8.0/dask-xgb-10min.html#Disable-NCCL-P2P.-Only-necessary-for-versions-of-NCCL-%3C-2.4 os.environ["NCCL_P2P_DISABLE"] = "1" except Exception: pass import json from dask_...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/mortgage_e2e_gquant/mortgage_run_workflow_daskdistrib.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import chaikin_oscillator ...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/ch_oscillator.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import on_balance_volume a...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/on_balance_volume.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import mass_index as indic...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/mass_index.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import money_flow_index as...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/money_flow_index.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import kst_oscillator as i...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/kst_oscillator.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import accumulation_distri...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/accumulation_distribution.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Lines import math import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import moving_average as indicator_fun #...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/ma.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import true_strength_index...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/true_strength_index.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import stochastic_oscillat...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/stochastic_oscillator_d.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import rate_of_change as i...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/rate_of_change.py
import ipywidgets as widgets from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import macd as indicator_fun # noqa #F401 def get_para_widgets(): ...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/macd.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import donchian_channel as...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/donchian_channel.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import average_directional...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/admi.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import force_index as indi...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/force_index.py
from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import stochastic_oscillator_k as indicator_fun # noqa...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/stochastic_oscillator_k.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import bollinger_bands as ...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/bollinger_bands.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import coppock_curve as in...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/coppock_curve.py
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/__init__.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import vortex_indicator as...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/vortex_indicator.py
import ipywidgets as widgets from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import keltner_channel as indicator_fun # noqa #F401 def get_para_...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/keltner_channel.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Lines import math import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import exponential_moving_average as indi...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/ewa.py
from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import ultimate_oscillator as indicator_fun # noqa #F4...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/ultimate_oscillator.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import commodity_channel_i...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/commodity_channel_index.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import relative_strength_i...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/rsi.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import average_true_range ...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/average_true_range.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import exponential_moving_...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/trix.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import ease_of_movement as...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/ease_of_movement.py
from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import ppsr as indicator_fun # noqa #F401 def get_pa...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/parabolic_sar.py
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Axis, Figure, LinearScale, Lines import os from greenflow.dataframe_flow.config_nodes_modules import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import momentum as indicat...
fsi-samples-main
gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/momentum.py
from setuptools import setup, find_packages setup( name='greenflow_nemo_plugin', packages=find_packages(include=['greenflow_nemo_plugin', 'greenflow_nemo_plugin.nemo_util']), entry_points={ 'greenflow.plugin': ['greenflow_nemo_plugin = greenflow_nemo_plug...
fsi-samples-main
gQuant/plugins/nemo_plugin/setup.py
from greenflow.dataframe_flow import Node from .nemoBaseNode import NeMoBase import nemo import nemo.collections.simple_gan class DiscriminatorLossNode(NeMoBase, Node): def init(self): NeMoBase.init(self, nemo.collections.simple_gan.gan.DiscriminatorLoss) class GradientPenaltyNode(NeMoBase, Node): ...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/simple_gan.py
from greenflow.dataframe_flow import Node from .nemoBaseNode import NeMoBase import nemo import nemo.backends.pytorch.tutorials class DialogDataLayerNode(NeMoBase, Node): def init(self): NeMoBase.init(self, nemo.backends.pytorch.tutorials.chatbot.modules.DialogDataLayer) class EncoderRNNNode(NeMoBase,...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/tutorials.py
validation_fun = """ //first check types const reqElement = required['element']; const outElement = outputs['element']; if ( outElement['types'][0] !== 'VoidType' && reqElement['types'][0] !== 'VoidType' ) { if ( outElement['types'].findIndex( (d) => d === reqElement['types'][0] ...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/client.py
from greenflow.dataframe_flow import Node from .nemoBaseNode import NeMoBase import nemo import nemo.collections.tts class AudioDataLayerNode(NeMoBase, Node): def init(self): NeMoBase.init(self, nemo.collections.tts.data_layers.AudioDataLayer) class FastSpeechNode(NeMoBase, Node): def init(self): ...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/tts.py
from .client import validation, display # noqa: #401 from greenflow.dataframe_flow._node_flow import register_cleanup def clean_nemo(ui_clean): """ ui_clean is True if the client send 'clean' command to the greenflow backend """ try: import nemo nf = nemo.core.NeuralModuleFactory....
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/__init__.py
from greenflow.dataframe_flow import Node from .nemoBaseNode import NeMoBase import nemo import nemo.collections.asr class AudioPreprocessorNode(NeMoBase, Node): def init(self): NeMoBase.init(self, nemo.collections.asr.audio_preprocessing.AudioPreprocessor) class AudioToMFCCPreprocessorNode(NeMoBase, ...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/asr.py
from greenflow.dataframe_flow import Node from .nemoBaseNode import NeMoBase import nemo import nemo.collections.nlp.nm class BertInferDataLayerNode(NeMoBase, Node): def init(self): NeMoBase.init(self, nemo.collections.nlp.nm.data_layers.bert_inference_datalayer.BertInferDataLayer) class BertPretraini...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/nlp.py
from greenflow.dataframe_flow import ( ConfSchema, PortsSpecSchema, NodePorts, MetaData) from nemo.core.neural_types import NmTensor import inspect from greenflow.plugin_nodes.util.json_util import type_map from collections import OrderedDict from greenflow.dataframe_flow.util import get_file_path from nemo.backen...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/nemoBaseNode.py
from greenflow.dataframe_flow import Node from .nemoBaseNode import NeMoBase import nemo import nemo.backends.pytorch.common class BCEWithLogitsLossNMNode(NeMoBase, Node): def init(self): NeMoBase.init(self, nemo.backends.pytorch.common.losses.BCEWithLogitsLossNM) class CrossEntropyLossNMNode(NeMoBase...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/common.py
from greenflow.dataframe_flow import Node from .nemoBaseNode import NeMoBase import nemo import nemo.collections.cv class CIFAR100DataLayerNode(NeMoBase, Node): def init(self): NeMoBase.init(self, nemo.collections.cv.modules.data_layers.cifar100_datalayer.CIFAR100DataLayer) class CIFAR10DataLayerNode(...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/cv.py
from greenflow_gquant_plugin.ml import GridRandomSearchNode from greenflow.plugin_nodes.util.contextCompositeNode import ContextCompositeNode # noqa #E402 from greenflow.dataframe_flow.portsSpecSchema import (ConfSchema, # noqa #E402 NodePorts) from greenflow.dataframe...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/nemo_util/nemoHPO.py
from greenflow.dataframe_flow import Node from greenflow.dataframe_flow import ( ConfSchema, PortsSpecSchema, NodePorts, MetaData) from nemo.core.neural_types import NmTensor import nemo import numpy import copy __all__ = ["NemoTrainNode"] class CallBack(object): def __init__(self): self.counter =...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/nemo_util/trainNemo.py
# from .toy import TaylorNetNode # from .toy import MSELossNode # from .toy import RealFunctionDataNode from .trainNemo import NemoTrainNode from .inferNemo import NemoInferNode from .nemoHPO import NemoHyperTuneNode __all__ = ["NemoTrainNode", "NemoInferNode", "NemoHyperTuneNode"]
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/nemo_util/__init__.py
from pathlib import Path from greenflow.dataframe_flow import Node from greenflow.dataframe_flow import ( ConfSchema, PortsSpecSchema, NodePorts, MetaData) from nemo.core.neural_types import NmTensor import nemo import copy __all__ = ["NemoInferNode"] def _isempty(pp): '''pp is pathlib Path :type pp: P...
fsi-samples-main
gQuant/plugins/nemo_plugin/greenflow_nemo_plugin/nemo_util/inferNemo.py
from setuptools import setup, find_packages setup( name='example_plugin', packages=find_packages(include=['example']), entry_points={ 'greenflow.plugin': [ 'custom_nodes = example', ], } )
fsi-samples-main
gQuant/plugins/simple_example/setup.py
display_fun = """ const columnKeys = Object.keys(metaObj); let header = ''; if (columnKeys.length > 0) { header += '<table>'; header += '<tr>'; header += '<th>Column Name</th>'; for (let i = 0; i < columnKeys.length; i++) { header += `<th>${columnKeys[i]}</th>`; } ...
fsi-samples-main
gQuant/plugins/simple_example/example/client.py
from .distanceNode import DistanceNode from .pointNode import PointNode import pandas as pd import numpy as np from .client import validation, display # noqa: F40 from greenflow.dataframe_flow._node_flow import register_validator from greenflow.dataframe_flow._node_flow import register_copy_function def _validate_df...
fsi-samples-main
gQuant/plugins/simple_example/example/__init__.py
import numpy as np from greenflow.dataframe_flow import Node from greenflow.dataframe_flow import PortsSpecSchema from greenflow.dataframe_flow import ConfSchema from greenflow.dataframe_flow.metaSpec import MetaDataSchema from greenflow.dataframe_flow.template_node_mixin import TemplateNodeMixin class DistanceNode(T...
fsi-samples-main
gQuant/plugins/simple_example/example/distanceNode.py
import numpy as np import pandas as pd from greenflow.dataframe_flow import Node from greenflow.dataframe_flow import PortsSpecSchema from greenflow.dataframe_flow import ConfSchema from greenflow.dataframe_flow.metaSpec import MetaDataSchema from greenflow.dataframe_flow.template_node_mixin import TemplateNodeMixin ...
fsi-samples-main
gQuant/plugins/simple_example/example/pointNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/setup.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/tests/unit/test_hrp_weight.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/tests/unit/test_distance.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/tests/unit/test_max_drawdown.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/tests/unit/__init__.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/tests/unit/test_leverage.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/tests/unit/test_bootstrap.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/tests/unit/test_order.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/featureNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/hrpWeight.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/portfolioNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/client.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/mergeNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/performanceMetricNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/__init__.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/leverageNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/diffNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/hierarchicalClusteringNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/aggregateTimeFeature.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/kernels.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/shapSummaryPlotNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/nrpWeightNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/bootstrapNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/loadCsvNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/rSquaredNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/distanceNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/rawDataNode.py
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
fsi-samples-main
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/maxDrawdownNode.py