This file contains hidden or 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 | |
""" | |
@file | |
@brief Wraps runtime into a :epkg:`scikit-learn` transformer. | |
""" | |
import numpy as np | |
from sklearn.base import BaseEstimator, TransformerMixin | |
from skl2onnx.algebra.onnx_operator_mixin import OnnxOperatorMixin |
This file contains hidden or 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
# run as: python run_script.py < your_script.py | |
import code | |
import sys | |
icon = code.InteractiveConsole() | |
prompt = '>>>' | |
for line in sys.stdin: | |
line = line.rstrip() | |
print(prompt, line) |