body
stringlengths
26
98.2k
body_hash
int64
-9,222,864,604,528,158,000
9,221,803,474B
docstring
stringlengths
1
16.8k
path
stringlengths
5
230
name
stringlengths
1
96
repository_name
stringlengths
7
89
lang
stringclasses
1 value
body_without_docstring
stringlengths
20
98.2k
def _der(self, x): '\n Returns the first derivative of the function at each value in x. Only\n called internally by HARKinterpolator1D.derivative.\n ' (y, dydx) = self.eval_with_derivative(x) return dydx
-4,543,842,455,542,227,500
Returns the first derivative of the function at each value in x. Only called internally by HARKinterpolator1D.derivative.
HARK/interpolation.py
_der
cohenimhuji/HARK
python
def _der(self, x): '\n Returns the first derivative of the function at each value in x. Only\n called internally by HARKinterpolator1D.derivative.\n ' (y, dydx) = self.eval_with_derivative(x) return dydx
def _evalAndDer(self, x): '\n Returns the level and first derivative of the function at each value in\n x. Only called internally by HARKinterpolator1D.eval_and_der.\n ' m = len(x) fx = np.zeros((m, self.funcCount)) for j in range(self.funcCount): fx[:, j] = self.functions[...
89,318,326,350,410,140
Returns the level and first derivative of the function at each value in x. Only called internally by HARKinterpolator1D.eval_and_der.
HARK/interpolation.py
_evalAndDer
cohenimhuji/HARK
python
def _evalAndDer(self, x): '\n Returns the level and first derivative of the function at each value in\n x. Only called internally by HARKinterpolator1D.eval_and_der.\n ' m = len(x) fx = np.zeros((m, self.funcCount)) for j in range(self.funcCount): fx[:, j] = self.functions[...
def __init__(self, *functions): '\n Constructor to make a new upper envelope iterpolation.\n\n Parameters\n ----------\n *functions : function\n Any number of real functions; often instances of HARKinterpolator1D\n\n Returns\n -------\n new instance of Upp...
-3,742,434,272,132,200,000
Constructor to make a new upper envelope iterpolation. Parameters ---------- *functions : function Any number of real functions; often instances of HARKinterpolator1D Returns ------- new instance of UpperEnvelope
HARK/interpolation.py
__init__
cohenimhuji/HARK
python
def __init__(self, *functions): '\n Constructor to make a new upper envelope iterpolation.\n\n Parameters\n ----------\n *functions : function\n Any number of real functions; often instances of HARKinterpolator1D\n\n Returns\n -------\n new instance of Upp...
def _evaluate(self, x): '\n Returns the level of the function at each value in x as the maximum among\n all of the functions. Only called internally by HARKinterpolator1D.__call__.\n ' if _isscalar(x): y = np.nanmax([f(x) for f in self.functions]) else: m = len(x) ...
7,497,230,056,737,183,000
Returns the level of the function at each value in x as the maximum among all of the functions. Only called internally by HARKinterpolator1D.__call__.
HARK/interpolation.py
_evaluate
cohenimhuji/HARK
python
def _evaluate(self, x): '\n Returns the level of the function at each value in x as the maximum among\n all of the functions. Only called internally by HARKinterpolator1D.__call__.\n ' if _isscalar(x): y = np.nanmax([f(x) for f in self.functions]) else: m = len(x) ...
def _der(self, x): '\n Returns the first derivative of the function at each value in x. Only\n called internally by HARKinterpolator1D.derivative.\n ' (y, dydx) = self.eval_with_derivative(x) return dydx
-4,543,842,455,542,227,500
Returns the first derivative of the function at each value in x. Only called internally by HARKinterpolator1D.derivative.
HARK/interpolation.py
_der
cohenimhuji/HARK
python
def _der(self, x): '\n Returns the first derivative of the function at each value in x. Only\n called internally by HARKinterpolator1D.derivative.\n ' (y, dydx) = self.eval_with_derivative(x) return dydx
def _evalAndDer(self, x): '\n Returns the level and first derivative of the function at each value in\n x. Only called internally by HARKinterpolator1D.eval_and_der.\n ' m = len(x) fx = np.zeros((m, self.funcCount)) for j in range(self.funcCount): fx[:, j] = self.functions[...
5,161,202,635,096,723,000
Returns the level and first derivative of the function at each value in x. Only called internally by HARKinterpolator1D.eval_and_der.
HARK/interpolation.py
_evalAndDer
cohenimhuji/HARK
python
def _evalAndDer(self, x): '\n Returns the level and first derivative of the function at each value in\n x. Only called internally by HARKinterpolator1D.eval_and_der.\n ' m = len(x) fx = np.zeros((m, self.funcCount)) for j in range(self.funcCount): fx[:, j] = self.functions[...
def __init__(self, *functions): '\n Constructor to make a new lower envelope iterpolation.\n\n Parameters\n ----------\n *functions : function\n Any number of real functions; often instances of HARKinterpolator2D\n\n Returns\n -------\n new instance of Low...
1,982,686,540,821,018,600
Constructor to make a new lower envelope iterpolation. Parameters ---------- *functions : function Any number of real functions; often instances of HARKinterpolator2D Returns ------- new instance of LowerEnvelope2D
HARK/interpolation.py
__init__
cohenimhuji/HARK
python
def __init__(self, *functions): '\n Constructor to make a new lower envelope iterpolation.\n\n Parameters\n ----------\n *functions : function\n Any number of real functions; often instances of HARKinterpolator2D\n\n Returns\n -------\n new instance of Low...
def _evaluate(self, x, y): '\n Returns the level of the function at each value in (x,y) as the minimum\n among all of the functions. Only called internally by\n HARKinterpolator2D.__call__.\n ' if _isscalar(x): f = np.nanmin([f(x, y) for f in self.functions]) else: ...
5,249,836,552,260,828,000
Returns the level of the function at each value in (x,y) as the minimum among all of the functions. Only called internally by HARKinterpolator2D.__call__.
HARK/interpolation.py
_evaluate
cohenimhuji/HARK
python
def _evaluate(self, x, y): '\n Returns the level of the function at each value in (x,y) as the minimum\n among all of the functions. Only called internally by\n HARKinterpolator2D.__call__.\n ' if _isscalar(x): f = np.nanmin([f(x, y) for f in self.functions]) else: ...
def _derX(self, x, y): '\n Returns the first derivative of the function with respect to X at each\n value in (x,y). Only called internally by HARKinterpolator2D._derX.\n ' m = len(x) temp = np.zeros((m, self.funcCount)) for j in range(self.funcCount): temp[:, j] = self.func...
-5,991,292,268,584,979,000
Returns the first derivative of the function with respect to X at each value in (x,y). Only called internally by HARKinterpolator2D._derX.
HARK/interpolation.py
_derX
cohenimhuji/HARK
python
def _derX(self, x, y): '\n Returns the first derivative of the function with respect to X at each\n value in (x,y). Only called internally by HARKinterpolator2D._derX.\n ' m = len(x) temp = np.zeros((m, self.funcCount)) for j in range(self.funcCount): temp[:, j] = self.func...
def _derY(self, x, y): '\n Returns the first derivative of the function with respect to Y at each\n value in (x,y). Only called internally by HARKinterpolator2D._derY.\n ' m = len(x) temp = np.zeros((m, self.funcCount)) for j in range(self.funcCount): temp[:, j] = self.func...
-6,446,132,566,151,625,000
Returns the first derivative of the function with respect to Y at each value in (x,y). Only called internally by HARKinterpolator2D._derY.
HARK/interpolation.py
_derY
cohenimhuji/HARK
python
def _derY(self, x, y): '\n Returns the first derivative of the function with respect to Y at each\n value in (x,y). Only called internally by HARKinterpolator2D._derY.\n ' m = len(x) temp = np.zeros((m, self.funcCount)) for j in range(self.funcCount): temp[:, j] = self.func...
def __init__(self, *functions): '\n Constructor to make a new lower envelope iterpolation.\n\n Parameters\n ----------\n *functions : function\n Any number of real functions; often instances of HARKinterpolator3D\n\n Returns\n -------\n None\n ' ...
4,380,085,783,528,576,000
Constructor to make a new lower envelope iterpolation. Parameters ---------- *functions : function Any number of real functions; often instances of HARKinterpolator3D Returns ------- None
HARK/interpolation.py
__init__
cohenimhuji/HARK
python
def __init__(self, *functions): '\n Constructor to make a new lower envelope iterpolation.\n\n Parameters\n ----------\n *functions : function\n Any number of real functions; often instances of HARKinterpolator3D\n\n Returns\n -------\n None\n ' ...
def _evaluate(self, x, y, z): '\n Returns the level of the function at each value in (x,y,z) as the minimum\n among all of the functions. Only called internally by\n HARKinterpolator3D.__call__.\n ' if _isscalar(x): f = np.nanmin([f(x, y, z) for f in self.functions]) els...
6,856,665,904,065,716,000
Returns the level of the function at each value in (x,y,z) as the minimum among all of the functions. Only called internally by HARKinterpolator3D.__call__.
HARK/interpolation.py
_evaluate
cohenimhuji/HARK
python
def _evaluate(self, x, y, z): '\n Returns the level of the function at each value in (x,y,z) as the minimum\n among all of the functions. Only called internally by\n HARKinterpolator3D.__call__.\n ' if _isscalar(x): f = np.nanmin([f(x, y, z) for f in self.functions]) els...
def _derX(self, x, y, z): '\n Returns the first derivative of the function with respect to X at each\n value in (x,y,z). Only called internally by HARKinterpolator3D._derX.\n ' m = len(x) temp = np.zeros((m, self.funcCount)) for j in range(self.funcCount): temp[:, j] = self...
-411,142,791,819,318,200
Returns the first derivative of the function with respect to X at each value in (x,y,z). Only called internally by HARKinterpolator3D._derX.
HARK/interpolation.py
_derX
cohenimhuji/HARK
python
def _derX(self, x, y, z): '\n Returns the first derivative of the function with respect to X at each\n value in (x,y,z). Only called internally by HARKinterpolator3D._derX.\n ' m = len(x) temp = np.zeros((m, self.funcCount)) for j in range(self.funcCount): temp[:, j] = self...
def _derY(self, x, y, z): '\n Returns the first derivative of the function with respect to Y at each\n value in (x,y,z). Only called internally by HARKinterpolator3D._derY.\n ' m = len(x) temp = np.zeros((m, self.funcCount)) for j in range(self.funcCount): temp[:, j] = self...
-4,448,192,538,913,105,000
Returns the first derivative of the function with respect to Y at each value in (x,y,z). Only called internally by HARKinterpolator3D._derY.
HARK/interpolation.py
_derY
cohenimhuji/HARK
python
def _derY(self, x, y, z): '\n Returns the first derivative of the function with respect to Y at each\n value in (x,y,z). Only called internally by HARKinterpolator3D._derY.\n ' m = len(x) temp = np.zeros((m, self.funcCount)) for j in range(self.funcCount): temp[:, j] = self...
def _derZ(self, x, y, z): '\n Returns the first derivative of the function with respect to Z at each\n value in (x,y,z). Only called internally by HARKinterpolator3D._derZ.\n ' m = len(x) temp = np.zeros((m, self.funcCount)) for j in range(self.funcCount): temp[:, j] = self...
-8,711,043,215,877,459,000
Returns the first derivative of the function with respect to Z at each value in (x,y,z). Only called internally by HARKinterpolator3D._derZ.
HARK/interpolation.py
_derZ
cohenimhuji/HARK
python
def _derZ(self, x, y, z): '\n Returns the first derivative of the function with respect to Z at each\n value in (x,y,z). Only called internally by HARKinterpolator3D._derZ.\n ' m = len(x) temp = np.zeros((m, self.funcCount)) for j in range(self.funcCount): temp[:, j] = self...
def __init__(self, func, lowerBound): '\n Make a new instance of VariableLowerBoundFunc2D.\n\n Parameters\n ----------\n func : function\n A function f: (R_+ x R) --> R representing the function of interest\n shifted by its lower bound in the first input.\n l...
-7,535,546,025,031,904,000
Make a new instance of VariableLowerBoundFunc2D. Parameters ---------- func : function A function f: (R_+ x R) --> R representing the function of interest shifted by its lower bound in the first input. lowerBound : function The lower bound in the first input of the function of interest, as a function o...
HARK/interpolation.py
__init__
cohenimhuji/HARK
python
def __init__(self, func, lowerBound): '\n Make a new instance of VariableLowerBoundFunc2D.\n\n Parameters\n ----------\n func : function\n A function f: (R_+ x R) --> R representing the function of interest\n shifted by its lower bound in the first input.\n l...
def __call__(self, x, y): '\n Evaluate the function at given state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of same shape as x.\n\n Returns\n -------\n ...
2,563,630,424,569,989,000
Evaluate the function at given state space points. Parameters ---------- x : np.array First input values. y : np.array Second input values; should be of same shape as x. Returns ------- f_out : np.array Function evaluated at (x,y), of same shape as inputs.
HARK/interpolation.py
__call__
cohenimhuji/HARK
python
def __call__(self, x, y): '\n Evaluate the function at given state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of same shape as x.\n\n Returns\n -------\n ...
def derivativeX(self, x, y): '\n Evaluate the first derivative with respect to x of the function at given\n state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of same s...
7,029,267,794,205,042,000
Evaluate the first derivative with respect to x of the function at given state space points. Parameters ---------- x : np.array First input values. y : np.array Second input values; should be of same shape as x. Returns ------- dfdx_out : np.array First derivative of function with respect to the first i...
HARK/interpolation.py
derivativeX
cohenimhuji/HARK
python
def derivativeX(self, x, y): '\n Evaluate the first derivative with respect to x of the function at given\n state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of same s...
def derivativeY(self, x, y): '\n Evaluate the first derivative with respect to y of the function at given\n state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of same s...
543,617,472,426,047,800
Evaluate the first derivative with respect to y of the function at given state space points. Parameters ---------- x : np.array First input values. y : np.array Second input values; should be of same shape as x. Returns ------- dfdy_out : np.array First derivative of function with respect to the second ...
HARK/interpolation.py
derivativeY
cohenimhuji/HARK
python
def derivativeY(self, x, y): '\n Evaluate the first derivative with respect to y of the function at given\n state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of same s...
def __init__(self, func, lowerBound): '\n Make a new instance of VariableLowerBoundFunc3D.\n\n Parameters\n ----------\n func : function\n A function f: (R_+ x R^2) --> R representing the function of interest\n shifted by its lower bound in the first input.\n ...
7,236,612,615,693,391,000
Make a new instance of VariableLowerBoundFunc3D. Parameters ---------- func : function A function f: (R_+ x R^2) --> R representing the function of interest shifted by its lower bound in the first input. lowerBound : function The lower bound in the first input of the function of interest, as a function...
HARK/interpolation.py
__init__
cohenimhuji/HARK
python
def __init__(self, func, lowerBound): '\n Make a new instance of VariableLowerBoundFunc3D.\n\n Parameters\n ----------\n func : function\n A function f: (R_+ x R^2) --> R representing the function of interest\n shifted by its lower bound in the first input.\n ...
def __call__(self, x, y, z): '\n Evaluate the function at given state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of same shape as x.\n z : np.array\n Thir...
-2,633,069,501,070,394,000
Evaluate the function at given state space points. Parameters ---------- x : np.array First input values. y : np.array Second input values; should be of same shape as x. z : np.array Third input values; should be of same shape as x. Returns ------- f_out : np.array Function evaluated at (x,y,z), of...
HARK/interpolation.py
__call__
cohenimhuji/HARK
python
def __call__(self, x, y, z): '\n Evaluate the function at given state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of same shape as x.\n z : np.array\n Thir...
def derivativeX(self, x, y, z): '\n Evaluate the first derivative with respect to x of the function at given\n state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of sam...
2,479,280,836,390,275,600
Evaluate the first derivative with respect to x of the function at given state space points. Parameters ---------- x : np.array First input values. y : np.array Second input values; should be of same shape as x. z : np.array Third input values; should be of same shape as x. Returns ------- dfdx_out : n...
HARK/interpolation.py
derivativeX
cohenimhuji/HARK
python
def derivativeX(self, x, y, z): '\n Evaluate the first derivative with respect to x of the function at given\n state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of sam...
def derivativeY(self, x, y, z): '\n Evaluate the first derivative with respect to y of the function at given\n state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of sam...
-1,435,814,437,818,480,400
Evaluate the first derivative with respect to y of the function at given state space points. Parameters ---------- x : np.array First input values. y : np.array Second input values; should be of same shape as x. z : np.array Third input values; should be of same shape as x. Returns ------- dfdy_out : n...
HARK/interpolation.py
derivativeY
cohenimhuji/HARK
python
def derivativeY(self, x, y, z): '\n Evaluate the first derivative with respect to y of the function at given\n state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of sam...
def derivativeZ(self, x, y, z): '\n Evaluate the first derivative with respect to z of the function at given\n state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of sam...
-6,892,089,819,161,378,000
Evaluate the first derivative with respect to z of the function at given state space points. Parameters ---------- x : np.array First input values. y : np.array Second input values; should be of same shape as x. z : np.array Third input values; should be of same shape as x. Returns ------- dfdz_out : n...
HARK/interpolation.py
derivativeZ
cohenimhuji/HARK
python
def derivativeZ(self, x, y, z): '\n Evaluate the first derivative with respect to z of the function at given\n state space points.\n\n Parameters\n ----------\n x : np.array\n First input values.\n y : np.array\n Second input values; should be of sam...
def __init__(self, xInterpolators, y_values): '\n Constructor for the class, generating an approximation to a function of\n the form f(x,y) using interpolations over f(x,y_0) for a fixed grid of\n y_0 values.\n\n Parameters\n ----------\n xInterpolators : [HARKinterpolator1...
662,969,043,855,528,400
Constructor for the class, generating an approximation to a function of the form f(x,y) using interpolations over f(x,y_0) for a fixed grid of y_0 values. Parameters ---------- xInterpolators : [HARKinterpolator1D] A list of 1D interpolations over the x variable. The nth element of xInterpolators represents f...
HARK/interpolation.py
__init__
cohenimhuji/HARK
python
def __init__(self, xInterpolators, y_values): '\n Constructor for the class, generating an approximation to a function of\n the form f(x,y) using interpolations over f(x,y_0) for a fixed grid of\n y_0 values.\n\n Parameters\n ----------\n xInterpolators : [HARKinterpolator1...
def _evaluate(self, x, y): '\n Returns the level of the interpolated function at each value in x,y.\n Only called internally by HARKinterpolator2D.__call__ (etc).\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) alpha = ((y - self.y_l...
5,593,763,169,825,352,000
Returns the level of the interpolated function at each value in x,y. Only called internally by HARKinterpolator2D.__call__ (etc).
HARK/interpolation.py
_evaluate
cohenimhuji/HARK
python
def _evaluate(self, x, y): '\n Returns the level of the interpolated function at each value in x,y.\n Only called internally by HARKinterpolator2D.__call__ (etc).\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) alpha = ((y - self.y_l...
def _derX(self, x, y): '\n Returns the derivative with respect to x of the interpolated function\n at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) alpha ...
-6,343,394,968,401,222,000
Returns the derivative with respect to x of the interpolated function at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.
HARK/interpolation.py
_derX
cohenimhuji/HARK
python
def _derX(self, x, y): '\n Returns the derivative with respect to x of the interpolated function\n at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) alpha ...
def _derY(self, x, y): '\n Returns the derivative with respect to y of the interpolated function\n at each value in x,y. Only called internally by HARKinterpolator2D.derivativeY.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) dfdy =...
-475,866,422,364,120,100
Returns the derivative with respect to y of the interpolated function at each value in x,y. Only called internally by HARKinterpolator2D.derivativeY.
HARK/interpolation.py
_derY
cohenimhuji/HARK
python
def _derY(self, x, y): '\n Returns the derivative with respect to y of the interpolated function\n at each value in x,y. Only called internally by HARKinterpolator2D.derivativeY.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) dfdy =...
def __init__(self, xInterpolators, y_values, z_values): '\n Constructor for the class, generating an approximation to a function of\n the form f(x,y,z) using interpolations over f(x,y_0,z_0) for a fixed grid\n of y_0 and z_0 values.\n\n Parameters\n ----------\n xInterpolat...
-3,114,806,296,255,248,400
Constructor for the class, generating an approximation to a function of the form f(x,y,z) using interpolations over f(x,y_0,z_0) for a fixed grid of y_0 and z_0 values. Parameters ---------- xInterpolators : [[HARKinterpolator1D]] A list of lists of 1D interpolations over the x variable. The i,j-th element of...
HARK/interpolation.py
__init__
cohenimhuji/HARK
python
def __init__(self, xInterpolators, y_values, z_values): '\n Constructor for the class, generating an approximation to a function of\n the form f(x,y,z) using interpolations over f(x,y_0,z_0) for a fixed grid\n of y_0 and z_0 values.\n\n Parameters\n ----------\n xInterpolat...
def _evaluate(self, x, y, z): '\n Returns the level of the interpolated function at each value in x,y,z.\n Only called internally by HARKinterpolator3D.__call__ (etc).\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) z_pos = max(min(n...
9,073,170,695,666,131,000
Returns the level of the interpolated function at each value in x,y,z. Only called internally by HARKinterpolator3D.__call__ (etc).
HARK/interpolation.py
_evaluate
cohenimhuji/HARK
python
def _evaluate(self, x, y, z): '\n Returns the level of the interpolated function at each value in x,y,z.\n Only called internally by HARKinterpolator3D.__call__ (etc).\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) z_pos = max(min(n...
def _derX(self, x, y, z): '\n Returns the derivative with respect to x of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeX.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) z...
-442,082,114,651,853,500
Returns the derivative with respect to x of the interpolated function at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeX.
HARK/interpolation.py
_derX
cohenimhuji/HARK
python
def _derX(self, x, y, z): '\n Returns the derivative with respect to x of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeX.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) z...
def _derY(self, x, y, z): '\n Returns the derivative with respect to y of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeY.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) z...
6,050,288,234,357,051,000
Returns the derivative with respect to y of the interpolated function at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeY.
HARK/interpolation.py
_derY
cohenimhuji/HARK
python
def _derY(self, x, y, z): '\n Returns the derivative with respect to y of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeY.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) z...
def _derZ(self, x, y, z): '\n Returns the derivative with respect to z of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeZ.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) z...
8,785,880,321,161,172,000
Returns the derivative with respect to z of the interpolated function at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeZ.
HARK/interpolation.py
_derZ
cohenimhuji/HARK
python
def _derZ(self, x, y, z): '\n Returns the derivative with respect to z of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeZ.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) z...
def __init__(self, wInterpolators, x_values, y_values, z_values): '\n Constructor for the class, generating an approximation to a function of\n the form f(w,x,y,z) using interpolations over f(w,x_0,y_0,z_0) for a fixed\n grid of y_0 and z_0 values.\n\n Parameters\n ----------\n ...
-4,740,230,801,676,111,000
Constructor for the class, generating an approximation to a function of the form f(w,x,y,z) using interpolations over f(w,x_0,y_0,z_0) for a fixed grid of y_0 and z_0 values. Parameters ---------- wInterpolators : [[[HARKinterpolator1D]]] A list of lists of lists of 1D interpolations over the x variable. The i...
HARK/interpolation.py
__init__
cohenimhuji/HARK
python
def __init__(self, wInterpolators, x_values, y_values, z_values): '\n Constructor for the class, generating an approximation to a function of\n the form f(w,x,y,z) using interpolations over f(w,x_0,y_0,z_0) for a fixed\n grid of y_0 and z_0 values.\n\n Parameters\n ----------\n ...
def _evaluate(self, w, x, y, z): '\n Returns the level of the interpolated function at each value in w,x,y,z.\n Only called internally by HARKinterpolator4D.__call__ (etc).\n ' if _isscalar(w): x_pos = max(min(np.searchsorted(self.x_list, x), (self.x_n - 1)), 1) y_pos = max(...
7,536,716,941,229,016,000
Returns the level of the interpolated function at each value in w,x,y,z. Only called internally by HARKinterpolator4D.__call__ (etc).
HARK/interpolation.py
_evaluate
cohenimhuji/HARK
python
def _evaluate(self, w, x, y, z): '\n Returns the level of the interpolated function at each value in w,x,y,z.\n Only called internally by HARKinterpolator4D.__call__ (etc).\n ' if _isscalar(w): x_pos = max(min(np.searchsorted(self.x_list, x), (self.x_n - 1)), 1) y_pos = max(...
def _derW(self, w, x, y, z): '\n Returns the derivative with respect to w of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeW.\n ' if _isscalar(w): x_pos = max(min(np.searchsorted(self.x_list, x), (self.x_n - 1)), 1) ...
5,101,724,768,978,712,000
Returns the derivative with respect to w of the interpolated function at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeW.
HARK/interpolation.py
_derW
cohenimhuji/HARK
python
def _derW(self, w, x, y, z): '\n Returns the derivative with respect to w of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeW.\n ' if _isscalar(w): x_pos = max(min(np.searchsorted(self.x_list, x), (self.x_n - 1)), 1) ...
def _derX(self, w, x, y, z): '\n Returns the derivative with respect to x of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeX.\n ' if _isscalar(w): x_pos = max(min(np.searchsorted(self.x_list, x), (self.x_n - 1)), 1) ...
-5,434,517,824,112,447,000
Returns the derivative with respect to x of the interpolated function at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeX.
HARK/interpolation.py
_derX
cohenimhuji/HARK
python
def _derX(self, w, x, y, z): '\n Returns the derivative with respect to x of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeX.\n ' if _isscalar(w): x_pos = max(min(np.searchsorted(self.x_list, x), (self.x_n - 1)), 1) ...
def _derY(self, w, x, y, z): '\n Returns the derivative with respect to y of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeY.\n ' if _isscalar(w): x_pos = max(min(np.searchsorted(self.x_list, x), (self.x_n - 1)), 1) ...
-7,388,617,949,752,141,000
Returns the derivative with respect to y of the interpolated function at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeY.
HARK/interpolation.py
_derY
cohenimhuji/HARK
python
def _derY(self, w, x, y, z): '\n Returns the derivative with respect to y of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeY.\n ' if _isscalar(w): x_pos = max(min(np.searchsorted(self.x_list, x), (self.x_n - 1)), 1) ...
def _derZ(self, w, x, y, z): '\n Returns the derivative with respect to z of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeZ.\n ' if _isscalar(w): x_pos = max(min(np.searchsorted(self.x_list, x), (self.x_n - 1)), 1) ...
-2,644,368,838,800,340,500
Returns the derivative with respect to z of the interpolated function at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeZ.
HARK/interpolation.py
_derZ
cohenimhuji/HARK
python
def _derZ(self, w, x, y, z): '\n Returns the derivative with respect to z of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeZ.\n ' if _isscalar(w): x_pos = max(min(np.searchsorted(self.x_list, x), (self.x_n - 1)), 1) ...
def __init__(self, xyInterpolators, z_values): '\n Constructor for the class, generating an approximation to a function of\n the form f(x,y,z) using interpolations over f(x,y,z_0) for a fixed grid\n of z_0 values.\n\n Parameters\n ----------\n xyInterpolators : [HARKinterpo...
-4,900,033,517,917,075,000
Constructor for the class, generating an approximation to a function of the form f(x,y,z) using interpolations over f(x,y,z_0) for a fixed grid of z_0 values. Parameters ---------- xyInterpolators : [HARKinterpolator2D] A list of 2D interpolations over the x and y variables. The nth element of xyInterpolators...
HARK/interpolation.py
__init__
cohenimhuji/HARK
python
def __init__(self, xyInterpolators, z_values): '\n Constructor for the class, generating an approximation to a function of\n the form f(x,y,z) using interpolations over f(x,y,z_0) for a fixed grid\n of z_0 values.\n\n Parameters\n ----------\n xyInterpolators : [HARKinterpo...
def _evaluate(self, x, y, z): '\n Returns the level of the interpolated function at each value in x,y,z.\n Only called internally by HARKinterpolator3D.__call__ (etc).\n ' if _isscalar(x): z_pos = max(min(np.searchsorted(self.z_list, z), (self.z_n - 1)), 1) alpha = ((z - sel...
-7,647,440,318,575,433,000
Returns the level of the interpolated function at each value in x,y,z. Only called internally by HARKinterpolator3D.__call__ (etc).
HARK/interpolation.py
_evaluate
cohenimhuji/HARK
python
def _evaluate(self, x, y, z): '\n Returns the level of the interpolated function at each value in x,y,z.\n Only called internally by HARKinterpolator3D.__call__ (etc).\n ' if _isscalar(x): z_pos = max(min(np.searchsorted(self.z_list, z), (self.z_n - 1)), 1) alpha = ((z - sel...
def _derX(self, x, y, z): '\n Returns the derivative with respect to x of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeX.\n ' if _isscalar(x): z_pos = max(min(np.searchsorted(self.z_list, z), (self.z_n - 1)), 1) a...
1,322,114,914,739,417,900
Returns the derivative with respect to x of the interpolated function at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeX.
HARK/interpolation.py
_derX
cohenimhuji/HARK
python
def _derX(self, x, y, z): '\n Returns the derivative with respect to x of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeX.\n ' if _isscalar(x): z_pos = max(min(np.searchsorted(self.z_list, z), (self.z_n - 1)), 1) a...
def _derY(self, x, y, z): '\n Returns the derivative with respect to y of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeY.\n ' if _isscalar(x): z_pos = max(min(np.searchsorted(self.z_list, z), (self.z_n - 1)), 1) a...
-3,482,169,174,195,050,000
Returns the derivative with respect to y of the interpolated function at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeY.
HARK/interpolation.py
_derY
cohenimhuji/HARK
python
def _derY(self, x, y, z): '\n Returns the derivative with respect to y of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeY.\n ' if _isscalar(x): z_pos = max(min(np.searchsorted(self.z_list, z), (self.z_n - 1)), 1) a...
def _derZ(self, x, y, z): '\n Returns the derivative with respect to z of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeZ.\n ' if _isscalar(x): z_pos = max(min(np.searchsorted(self.z_list, z), (self.z_n - 1)), 1) d...
7,974,405,844,827,120,000
Returns the derivative with respect to z of the interpolated function at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeZ.
HARK/interpolation.py
_derZ
cohenimhuji/HARK
python
def _derZ(self, x, y, z): '\n Returns the derivative with respect to z of the interpolated function\n at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeZ.\n ' if _isscalar(x): z_pos = max(min(np.searchsorted(self.z_list, z), (self.z_n - 1)), 1) d...
def __init__(self, wxInterpolators, y_values, z_values): '\n Constructor for the class, generating an approximation to a function of\n the form f(w,x,y,z) using interpolations over f(w,x,y_0,z_0) for a fixed\n grid of y_0 and z_0 values.\n\n Parameters\n ----------\n wxInte...
2,062,076,805,536,904,000
Constructor for the class, generating an approximation to a function of the form f(w,x,y,z) using interpolations over f(w,x,y_0,z_0) for a fixed grid of y_0 and z_0 values. Parameters ---------- wxInterpolators : [[HARKinterpolator2D]] A list of lists of 2D interpolations over the w and x variables. The i,j-th...
HARK/interpolation.py
__init__
cohenimhuji/HARK
python
def __init__(self, wxInterpolators, y_values, z_values): '\n Constructor for the class, generating an approximation to a function of\n the form f(w,x,y,z) using interpolations over f(w,x,y_0,z_0) for a fixed\n grid of y_0 and z_0 values.\n\n Parameters\n ----------\n wxInte...
def _evaluate(self, w, x, y, z): '\n Returns the level of the interpolated function at each value in x,y,z.\n Only called internally by HARKinterpolator4D.__call__ (etc).\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) z_pos = max(mi...
-7,212,439,489,972,631,000
Returns the level of the interpolated function at each value in x,y,z. Only called internally by HARKinterpolator4D.__call__ (etc).
HARK/interpolation.py
_evaluate
cohenimhuji/HARK
python
def _evaluate(self, w, x, y, z): '\n Returns the level of the interpolated function at each value in x,y,z.\n Only called internally by HARKinterpolator4D.__call__ (etc).\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) z_pos = max(mi...
def _derW(self, w, x, y, z): '\n Returns the derivative with respect to w of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeW.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) ...
3,454,840,866,681,943,600
Returns the derivative with respect to w of the interpolated function at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeW.
HARK/interpolation.py
_derW
cohenimhuji/HARK
python
def _derW(self, w, x, y, z): '\n Returns the derivative with respect to w of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeW.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) ...
def _derX(self, w, x, y, z): '\n Returns the derivative with respect to x of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeX.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) ...
5,816,581,178,847,682,000
Returns the derivative with respect to x of the interpolated function at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeX.
HARK/interpolation.py
_derX
cohenimhuji/HARK
python
def _derX(self, w, x, y, z): '\n Returns the derivative with respect to x of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeX.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) ...
def _derY(self, w, x, y, z): '\n Returns the derivative with respect to y of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeY.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) ...
-2,196,527,685,885,881,000
Returns the derivative with respect to y of the interpolated function at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeY.
HARK/interpolation.py
_derY
cohenimhuji/HARK
python
def _derY(self, w, x, y, z): '\n Returns the derivative with respect to y of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeY.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) ...
def _derZ(self, w, x, y, z): '\n Returns the derivative with respect to z of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeZ.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) ...
-3,309,131,212,846,705,700
Returns the derivative with respect to z of the interpolated function at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeZ.
HARK/interpolation.py
_derZ
cohenimhuji/HARK
python
def _derZ(self, w, x, y, z): '\n Returns the derivative with respect to z of the interpolated function\n at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeZ.\n ' if _isscalar(x): y_pos = max(min(np.searchsorted(self.y_list, y), (self.y_n - 1)), 1) ...
def __init__(self, f_values, x_values, y_values): '\n Constructor for 2D curvilinear interpolation for a function f(x,y)\n\n Parameters\n ----------\n f_values: numpy.array\n A 2D array of function values such that f_values[i,j] =\n f(x_values[i,j],y_values[i,j]).\n...
313,606,005,359,733,760
Constructor for 2D curvilinear interpolation for a function f(x,y) Parameters ---------- f_values: numpy.array A 2D array of function values such that f_values[i,j] = f(x_values[i,j],y_values[i,j]). x_values: numpy.array A 2D array of x values of the same size as f_values. y_values: numpy.array A 2D ar...
HARK/interpolation.py
__init__
cohenimhuji/HARK
python
def __init__(self, f_values, x_values, y_values): '\n Constructor for 2D curvilinear interpolation for a function f(x,y)\n\n Parameters\n ----------\n f_values: numpy.array\n A 2D array of function values such that f_values[i,j] =\n f(x_values[i,j],y_values[i,j]).\n...
def updatePolarity(self): '\n Fills in the polarity attribute of the interpolation, determining whether\n the "plus" (True) or "minus" (False) solution of the system of equations\n should be used for each sector. Needs to be called in __init__.\n\n Parameters\n ----------\n ...
1,964,623,072,593,055,500
Fills in the polarity attribute of the interpolation, determining whether the "plus" (True) or "minus" (False) solution of the system of equations should be used for each sector. Needs to be called in __init__. Parameters ---------- none Returns ------- none
HARK/interpolation.py
updatePolarity
cohenimhuji/HARK
python
def updatePolarity(self): '\n Fills in the polarity attribute of the interpolation, determining whether\n the "plus" (True) or "minus" (False) solution of the system of equations\n should be used for each sector. Needs to be called in __init__.\n\n Parameters\n ----------\n ...
def findSector(self, x, y): '\n Finds the quadrilateral "sector" for each (x,y) point in the input.\n Only called as a subroutine of _evaluate().\n\n Parameters\n ----------\n x : np.array\n Values whose sector should be found.\n y : np.array\n Values ...
-8,147,189,302,166,205,000
Finds the quadrilateral "sector" for each (x,y) point in the input. Only called as a subroutine of _evaluate(). Parameters ---------- x : np.array Values whose sector should be found. y : np.array Values whose sector should be found. Should be same size as x. Returns ------- x_pos : np.array Sector x-coo...
HARK/interpolation.py
findSector
cohenimhuji/HARK
python
def findSector(self, x, y): '\n Finds the quadrilateral "sector" for each (x,y) point in the input.\n Only called as a subroutine of _evaluate().\n\n Parameters\n ----------\n x : np.array\n Values whose sector should be found.\n y : np.array\n Values ...
def findCoords(self, x, y, x_pos, y_pos): '\n Calculates the relative coordinates (alpha,beta) for each point (x,y),\n given the sectors (x_pos,y_pos) in which they reside. Only called as\n a subroutine of __call__().\n\n Parameters\n ----------\n x : np.array\n ...
6,835,459,731,216,263,000
Calculates the relative coordinates (alpha,beta) for each point (x,y), given the sectors (x_pos,y_pos) in which they reside. Only called as a subroutine of __call__(). Parameters ---------- x : np.array Values whose sector should be found. y : np.array Values whose sector should be found. Should be same size...
HARK/interpolation.py
findCoords
cohenimhuji/HARK
python
def findCoords(self, x, y, x_pos, y_pos): '\n Calculates the relative coordinates (alpha,beta) for each point (x,y),\n given the sectors (x_pos,y_pos) in which they reside. Only called as\n a subroutine of __call__().\n\n Parameters\n ----------\n x : np.array\n ...
def _evaluate(self, x, y): '\n Returns the level of the interpolated function at each value in x,y.\n Only called internally by HARKinterpolator2D.__call__ (etc).\n ' (x_pos, y_pos) = self.findSector(x, y) (alpha, beta) = self.findCoords(x, y, x_pos, y_pos) f = ((((((1 - alpha) * (1...
-7,214,506,177,621,786,000
Returns the level of the interpolated function at each value in x,y. Only called internally by HARKinterpolator2D.__call__ (etc).
HARK/interpolation.py
_evaluate
cohenimhuji/HARK
python
def _evaluate(self, x, y): '\n Returns the level of the interpolated function at each value in x,y.\n Only called internally by HARKinterpolator2D.__call__ (etc).\n ' (x_pos, y_pos) = self.findSector(x, y) (alpha, beta) = self.findCoords(x, y, x_pos, y_pos) f = ((((((1 - alpha) * (1...
def _derX(self, x, y): '\n Returns the derivative with respect to x of the interpolated function\n at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.\n ' (x_pos, y_pos) = self.findSector(x, y) (alpha, beta) = self.findCoords(x, y, x_pos, y_pos) xA = self...
1,090,018,395,499,337,000
Returns the derivative with respect to x of the interpolated function at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.
HARK/interpolation.py
_derX
cohenimhuji/HARK
python
def _derX(self, x, y): '\n Returns the derivative with respect to x of the interpolated function\n at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.\n ' (x_pos, y_pos) = self.findSector(x, y) (alpha, beta) = self.findCoords(x, y, x_pos, y_pos) xA = self...
def _derY(self, x, y): '\n Returns the derivative with respect to y of the interpolated function\n at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.\n ' (x_pos, y_pos) = self.findSector(x, y) (alpha, beta) = self.findCoords(x, y, x_pos, y_pos) xA = self...
6,395,438,805,271,595,000
Returns the derivative with respect to y of the interpolated function at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.
HARK/interpolation.py
_derY
cohenimhuji/HARK
python
def _derY(self, x, y): '\n Returns the derivative with respect to y of the interpolated function\n at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.\n ' (x_pos, y_pos) = self.findSector(x, y) (alpha, beta) = self.findCoords(x, y, x_pos, y_pos) xA = self...
def get_image(train): '\n Randomly pick one image from training data\n ====================\n Args:\n train: train data\n ====================\n Return:\n image\n ' n = len(train) ind = np.random.randint(0, n) img_dir = train[ind] image = Image.open(img_dir) i...
-5,667,126,658,187,695,000
Randomly pick one image from training data ==================== Args: train: train data ==================== Return: image
cats_dogs/base.py
get_image
GPUworkstation/tensorflow-project
python
def get_image(train): '\n Randomly pick one image from training data\n ====================\n Args:\n train: train data\n ====================\n Return:\n image\n ' n = len(train) ind = np.random.randint(0, n) img_dir = train[ind] image = Image.open(img_dir) i...
def evaluate(): '\n Test one image against the saved models and parameters\n ' train_dir = './data/train/' (train, train_label) = train_test_split.get_files(train_dir) image_array = get_image(train) with tf.Graph().as_default(): batch_size = 1 n_classes = 2 image = ...
-4,895,543,533,726,775,000
Test one image against the saved models and parameters
cats_dogs/base.py
evaluate
GPUworkstation/tensorflow-project
python
def evaluate(): '\n \n ' train_dir = './data/train/' (train, train_label) = train_test_split.get_files(train_dir) image_array = get_image(train) with tf.Graph().as_default(): batch_size = 1 n_classes = 2 image = tf.cast(image_array, tf.float32) image = tf.im...
def evaluate_state_from_last_coordinate(self, c): '\n cmax: 450\n cmin: 150\n \n c definately will be between 150 and 450.\n state0 - (150 - 179)\n state1 - (180 - 209)\n state2 - (210 - 239)\n state3 - (240 - 269)\n state4 - (270 - 299)\n state5...
-6,452,695,814,198,387,000
cmax: 450 cmin: 150 c definately will be between 150 and 450. state0 - (150 - 179) state1 - (180 - 209) state2 - (210 - 239) state3 - (240 - 269) state4 - (270 - 299) state5 - (300 - 329) state6 - (330 - 359) state7 - (360 - 389) state8 - (390 - 419) state9 - (420 - 450)
pytennis/play.py
evaluate_state_from_last_coordinate
elishatofunmi/ReinEnv
python
def evaluate_state_from_last_coordinate(self, c): '\n cmax: 450\n cmin: 150\n \n c definately will be between 150 and 450.\n state0 - (150 - 179)\n state1 - (180 - 209)\n state2 - (210 - 239)\n state3 - (240 - 269)\n state4 - (270 - 299)\n state5...
def randomVal(self, action): '\n cmax: 450\n cmin: 150\n \n c definately will be between 150 and 450.\n state0 - (150 - 179)\n state1 - (180 - 209)\n state2 - (210 - 239)\n state3 - (240 - 269)\n state4 - (270 - 299)\n state5 - (300 - 329)\n ...
2,146,418,420,197,529,000
cmax: 450 cmin: 150 c definately will be between 150 and 450. state0 - (150 - 179) state1 - (180 - 209) state2 - (210 - 239) state3 - (240 - 269) state4 - (270 - 299) state5 - (300 - 329) state6 - (330 - 359) state7 - (360 - 389) state8 - (390 - 419) state9 - (420 - 450)
pytennis/play.py
randomVal
elishatofunmi/ReinEnv
python
def randomVal(self, action): '\n cmax: 450\n cmin: 150\n \n c definately will be between 150 and 450.\n state0 - (150 - 179)\n state1 - (180 - 209)\n state2 - (210 - 239)\n state3 - (240 - 269)\n state4 - (270 - 299)\n state5 - (300 - 329)\n ...
def print_metrics(round_number, client_ids, metrics, hierarchies, num_samples, path): 'Prints or appends the given metrics in a csv.\n\n The resulting dataframe is of the form:\n client_id, round_number, hierarchy, num_samples, metric1, metric2\n twebbstack, 0, , 18, 0.5, 0.89\n\n Args:\n ...
-7,489,702,820,993,001,000
Prints or appends the given metrics in a csv. The resulting dataframe is of the form: client_id, round_number, hierarchy, num_samples, metric1, metric2 twebbstack, 0, , 18, 0.5, 0.89 Args: round_number: Number of the round the metrics correspond to. If 0, then the file in path is overwritten. If n...
models/metrics/writer.py
print_metrics
slowbull/leaf
python
def print_metrics(round_number, client_ids, metrics, hierarchies, num_samples, path): 'Prints or appends the given metrics in a csv.\n\n The resulting dataframe is of the form:\n client_id, round_number, hierarchy, num_samples, metric1, metric2\n twebbstack, 0, , 18, 0.5, 0.89\n\n Args:\n ...
def print_dataframe(df, path, mode='w'): 'Writes the given dataframe in path as a csv' header = (mode == 'w') df.to_csv(path, mode=mode, header=header, index=False)
4,623,578,379,609,001,000
Writes the given dataframe in path as a csv
models/metrics/writer.py
print_dataframe
slowbull/leaf
python
def print_dataframe(df, path, mode='w'): header = (mode == 'w') df.to_csv(path, mode=mode, header=header, index=False)
def get_metrics_names(metrics): 'Gets the names of the metrics.\n\n Args:\n metrics: Dict keyed by client id. Each element is a dict of metrics\n for that client in the specified round. The dicts for all clients\n are expected to have the same set of keys.' if (len(metrics) == 0)...
97,297,999,199,947,840
Gets the names of the metrics. Args: metrics: Dict keyed by client id. Each element is a dict of metrics for that client in the specified round. The dicts for all clients are expected to have the same set of keys.
models/metrics/writer.py
get_metrics_names
slowbull/leaf
python
def get_metrics_names(metrics): 'Gets the names of the metrics.\n\n Args:\n metrics: Dict keyed by client id. Each element is a dict of metrics\n for that client in the specified round. The dicts for all clients\n are expected to have the same set of keys.' if (len(metrics) == 0)...
def build_learner(agent, env_outputs, agent_outputs, env_id): 'Builds the learner loop.\n\n Args:\n agent: A snt.RNNCore module outputting `AgentOutput` named tuples, with an\n `unroll` call for computing the outputs for a whole trajectory.\n agent_state: The initial agent state for each sequence in the...
-8,594,914,943,402,240,000
Builds the learner loop. Args: agent: A snt.RNNCore module outputting `AgentOutput` named tuples, with an `unroll` call for computing the outputs for a whole trajectory. agent_state: The initial agent state for each sequence in the batch. env_outputs: A `StepOutput` namedtuple where each field is of shape ...
popart/build_learner.py
build_learner
steffenvan/IMPALA-PopArt
python
def build_learner(agent, env_outputs, agent_outputs, env_id): 'Builds the learner loop.\n\n Args:\n agent: A snt.RNNCore module outputting `AgentOutput` named tuples, with an\n `unroll` call for computing the outputs for a whole trajectory.\n agent_state: The initial agent state for each sequence in the...
@mock_ec2 def test_request_spot_instances_default_arguments(): '\n Test that moto set the correct default arguments\n ' conn = boto.connect_ec2() request = conn.request_spot_instances(price=0.5, image_id='ami-abcd1234') requests = conn.get_all_spot_instance_requests() requests.should.have.leng...
-7,028,861,979,922,277,000
Test that moto set the correct default arguments
tests/test_ec2/test_spot_instances.py
test_request_spot_instances_default_arguments
GoodRx/moto
python
@mock_ec2 def test_request_spot_instances_default_arguments(): '\n \n ' conn = boto.connect_ec2() request = conn.request_spot_instances(price=0.5, image_id='ami-abcd1234') requests = conn.get_all_spot_instance_requests() requests.should.have.length_of(1) request = requests[0] request.s...
@mock_ec2 def test_request_spot_instances_fulfilled(): '\n Test that moto correctly fullfills a spot instance request\n ' conn = boto.ec2.connect_to_region('us-east-1') request = conn.request_spot_instances(price=0.5, image_id='ami-abcd1234') requests = conn.get_all_spot_instance_requests() re...
-9,222,702,379,383,652,000
Test that moto correctly fullfills a spot instance request
tests/test_ec2/test_spot_instances.py
test_request_spot_instances_fulfilled
GoodRx/moto
python
@mock_ec2 def test_request_spot_instances_fulfilled(): '\n \n ' conn = boto.ec2.connect_to_region('us-east-1') request = conn.request_spot_instances(price=0.5, image_id='ami-abcd1234') requests = conn.get_all_spot_instance_requests() requests.should.have.length_of(1) request = requests[0] ...
@mock_ec2 def test_tag_spot_instance_request(): '\n Test that moto correctly tags a spot instance request\n ' conn = boto.connect_ec2() request = conn.request_spot_instances(price=0.5, image_id='ami-abcd1234') request[0].add_tag('tag1', 'value1') request[0].add_tag('tag2', 'value2') reques...
8,481,017,730,225,486,000
Test that moto correctly tags a spot instance request
tests/test_ec2/test_spot_instances.py
test_tag_spot_instance_request
GoodRx/moto
python
@mock_ec2 def test_tag_spot_instance_request(): '\n \n ' conn = boto.connect_ec2() request = conn.request_spot_instances(price=0.5, image_id='ami-abcd1234') request[0].add_tag('tag1', 'value1') request[0].add_tag('tag2', 'value2') requests = conn.get_all_spot_instance_requests() reques...
@mock_ec2 def test_get_all_spot_instance_requests_filtering(): '\n Test that moto correctly filters spot instance requests\n ' conn = boto.connect_ec2() request1 = conn.request_spot_instances(price=0.5, image_id='ami-abcd1234') request2 = conn.request_spot_instances(price=0.5, image_id='ami-abcd12...
1,229,120,870,811,941,400
Test that moto correctly filters spot instance requests
tests/test_ec2/test_spot_instances.py
test_get_all_spot_instance_requests_filtering
GoodRx/moto
python
@mock_ec2 def test_get_all_spot_instance_requests_filtering(): '\n \n ' conn = boto.connect_ec2() request1 = conn.request_spot_instances(price=0.5, image_id='ami-abcd1234') request2 = conn.request_spot_instances(price=0.5, image_id='ami-abcd1234') conn.request_spot_instances(price=0.5, image_i...
def __init__(self, *args, **kwargs): 'This is a fake class to support current implemetation of MultiApiClientMixin."\n Will be removed in final version of multiapi azure-core based client\n ' pass
-2,091,115,876,554,127,000
This is a fake class to support current implemetation of MultiApiClientMixin." Will be removed in final version of multiapi azure-core based client
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
__init__
AFengKK/azure-sdk-for-python
python
def __init__(self, *args, **kwargs): 'This is a fake class to support current implemetation of MultiApiClientMixin."\n Will be removed in final version of multiapi azure-core based client\n ' pass
@classmethod def models(cls, api_version=DEFAULT_API_VERSION): 'Module depends on the API version:\n\n * 2017-03-01: :mod:`v2017_03_01.models<azure.mgmt.containerregistry.v2017_03_01.models>`\n * 2017-10-01: :mod:`v2017_10_01.models<azure.mgmt.containerregistry.v2017_10_01.models>`\n *...
-7,498,642,931,209,086,000
Module depends on the API version: * 2017-03-01: :mod:`v2017_03_01.models<azure.mgmt.containerregistry.v2017_03_01.models>` * 2017-10-01: :mod:`v2017_10_01.models<azure.mgmt.containerregistry.v2017_10_01.models>` * 2018-02-01-preview: :mod:`v2018_02_01_preview.models<azure.mgmt.containerregistry.v2018_02_01_preview.mo...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
models
AFengKK/azure-sdk-for-python
python
@classmethod def models(cls, api_version=DEFAULT_API_VERSION): 'Module depends on the API version:\n\n * 2017-03-01: :mod:`v2017_03_01.models<azure.mgmt.containerregistry.v2017_03_01.models>`\n * 2017-10-01: :mod:`v2017_10_01.models<azure.mgmt.containerregistry.v2017_10_01.models>`\n *...
@property def agent_pools(self): 'Instance depends on the API version:\n\n * 2019-06-01-preview: :class:`AgentPoolsOperations<azure.mgmt.containerregistry.v2019_06_01_preview.aio.operations.AgentPoolsOperations>`\n ' api_version = self._get_api_version('agent_pools') if (api_version == '201...
-5,085,916,263,640,466,000
Instance depends on the API version: * 2019-06-01-preview: :class:`AgentPoolsOperations<azure.mgmt.containerregistry.v2019_06_01_preview.aio.operations.AgentPoolsOperations>`
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
agent_pools
AFengKK/azure-sdk-for-python
python
@property def agent_pools(self): 'Instance depends on the API version:\n\n * 2019-06-01-preview: :class:`AgentPoolsOperations<azure.mgmt.containerregistry.v2019_06_01_preview.aio.operations.AgentPoolsOperations>`\n ' api_version = self._get_api_version('agent_pools') if (api_version == '201...
@property def build_steps(self): 'Instance depends on the API version:\n\n * 2018-02-01-preview: :class:`BuildStepsOperations<azure.mgmt.containerregistry.v2018_02_01_preview.aio.operations.BuildStepsOperations>`\n ' api_version = self._get_api_version('build_steps') if (api_version == '201...
-1,496,829,672,706,553,600
Instance depends on the API version: * 2018-02-01-preview: :class:`BuildStepsOperations<azure.mgmt.containerregistry.v2018_02_01_preview.aio.operations.BuildStepsOperations>`
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
build_steps
AFengKK/azure-sdk-for-python
python
@property def build_steps(self): 'Instance depends on the API version:\n\n * 2018-02-01-preview: :class:`BuildStepsOperations<azure.mgmt.containerregistry.v2018_02_01_preview.aio.operations.BuildStepsOperations>`\n ' api_version = self._get_api_version('build_steps') if (api_version == '201...
@property def build_tasks(self): 'Instance depends on the API version:\n\n * 2018-02-01-preview: :class:`BuildTasksOperations<azure.mgmt.containerregistry.v2018_02_01_preview.aio.operations.BuildTasksOperations>`\n ' api_version = self._get_api_version('build_tasks') if (api_version == '201...
-5,406,831,408,611,816,000
Instance depends on the API version: * 2018-02-01-preview: :class:`BuildTasksOperations<azure.mgmt.containerregistry.v2018_02_01_preview.aio.operations.BuildTasksOperations>`
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
build_tasks
AFengKK/azure-sdk-for-python
python
@property def build_tasks(self): 'Instance depends on the API version:\n\n * 2018-02-01-preview: :class:`BuildTasksOperations<azure.mgmt.containerregistry.v2018_02_01_preview.aio.operations.BuildTasksOperations>`\n ' api_version = self._get_api_version('build_tasks') if (api_version == '201...
@property def builds(self): 'Instance depends on the API version:\n\n * 2018-02-01-preview: :class:`BuildsOperations<azure.mgmt.containerregistry.v2018_02_01_preview.aio.operations.BuildsOperations>`\n ' api_version = self._get_api_version('builds') if (api_version == '2018-02-01-preview'):...
-6,728,441,991,317,288,000
Instance depends on the API version: * 2018-02-01-preview: :class:`BuildsOperations<azure.mgmt.containerregistry.v2018_02_01_preview.aio.operations.BuildsOperations>`
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
builds
AFengKK/azure-sdk-for-python
python
@property def builds(self): 'Instance depends on the API version:\n\n * 2018-02-01-preview: :class:`BuildsOperations<azure.mgmt.containerregistry.v2018_02_01_preview.aio.operations.BuildsOperations>`\n ' api_version = self._get_api_version('builds') if (api_version == '2018-02-01-preview'):...
@property def connected_registries(self): 'Instance depends on the API version:\n\n * 2020-11-01-preview: :class:`ConnectedRegistriesOperations<azure.mgmt.containerregistry.v2020_11_01_preview.aio.operations.ConnectedRegistriesOperations>`\n * 2021-06-01-preview: :class:`ConnectedRegistriesOpera...
6,753,454,761,955,240,000
Instance depends on the API version: * 2020-11-01-preview: :class:`ConnectedRegistriesOperations<azure.mgmt.containerregistry.v2020_11_01_preview.aio.operations.ConnectedRegistriesOperations>` * 2021-06-01-preview: :class:`ConnectedRegistriesOperations<azure.mgmt.containerregistry.v2021_06_01_preview.aio.operations.Co...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
connected_registries
AFengKK/azure-sdk-for-python
python
@property def connected_registries(self): 'Instance depends on the API version:\n\n * 2020-11-01-preview: :class:`ConnectedRegistriesOperations<azure.mgmt.containerregistry.v2020_11_01_preview.aio.operations.ConnectedRegistriesOperations>`\n * 2021-06-01-preview: :class:`ConnectedRegistriesOpera...
@property def export_pipelines(self): 'Instance depends on the API version:\n\n * 2019-12-01-preview: :class:`ExportPipelinesOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.ExportPipelinesOperations>`\n * 2020-11-01-preview: :class:`ExportPipelinesOperations<azure.mgmt...
81,635,952,181,019,620
Instance depends on the API version: * 2019-12-01-preview: :class:`ExportPipelinesOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.ExportPipelinesOperations>` * 2020-11-01-preview: :class:`ExportPipelinesOperations<azure.mgmt.containerregistry.v2020_11_01_preview.aio.operations.ExportPipeline...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
export_pipelines
AFengKK/azure-sdk-for-python
python
@property def export_pipelines(self): 'Instance depends on the API version:\n\n * 2019-12-01-preview: :class:`ExportPipelinesOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.ExportPipelinesOperations>`\n * 2020-11-01-preview: :class:`ExportPipelinesOperations<azure.mgmt...
@property def import_pipelines(self): 'Instance depends on the API version:\n\n * 2019-12-01-preview: :class:`ImportPipelinesOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.ImportPipelinesOperations>`\n * 2020-11-01-preview: :class:`ImportPipelinesOperations<azure.mgmt...
2,839,135,378,482,908,000
Instance depends on the API version: * 2019-12-01-preview: :class:`ImportPipelinesOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.ImportPipelinesOperations>` * 2020-11-01-preview: :class:`ImportPipelinesOperations<azure.mgmt.containerregistry.v2020_11_01_preview.aio.operations.ImportPipeline...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
import_pipelines
AFengKK/azure-sdk-for-python
python
@property def import_pipelines(self): 'Instance depends on the API version:\n\n * 2019-12-01-preview: :class:`ImportPipelinesOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.ImportPipelinesOperations>`\n * 2020-11-01-preview: :class:`ImportPipelinesOperations<azure.mgmt...
@property def operations(self): 'Instance depends on the API version:\n\n * 2017-03-01: :class:`Operations<azure.mgmt.containerregistry.v2017_03_01.aio.operations.Operations>`\n * 2017-10-01: :class:`Operations<azure.mgmt.containerregistry.v2017_10_01.aio.operations.Operations>`\n * 20...
2,949,915,227,870,088,000
Instance depends on the API version: * 2017-03-01: :class:`Operations<azure.mgmt.containerregistry.v2017_03_01.aio.operations.Operations>` * 2017-10-01: :class:`Operations<azure.mgmt.containerregistry.v2017_10_01.aio.operations.Operations>` * 2019-05-01: :class:`Operations<azure.mgmt.containerregistry.v2019_05_01.aio....
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
operations
AFengKK/azure-sdk-for-python
python
@property def operations(self): 'Instance depends on the API version:\n\n * 2017-03-01: :class:`Operations<azure.mgmt.containerregistry.v2017_03_01.aio.operations.Operations>`\n * 2017-10-01: :class:`Operations<azure.mgmt.containerregistry.v2017_10_01.aio.operations.Operations>`\n * 20...
@property def pipeline_runs(self): 'Instance depends on the API version:\n\n * 2019-12-01-preview: :class:`PipelineRunsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.PipelineRunsOperations>`\n * 2020-11-01-preview: :class:`PipelineRunsOperations<azure.mgmt.containerre...
4,067,161,058,127,691,000
Instance depends on the API version: * 2019-12-01-preview: :class:`PipelineRunsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.PipelineRunsOperations>` * 2020-11-01-preview: :class:`PipelineRunsOperations<azure.mgmt.containerregistry.v2020_11_01_preview.aio.operations.PipelineRunsOperations>...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
pipeline_runs
AFengKK/azure-sdk-for-python
python
@property def pipeline_runs(self): 'Instance depends on the API version:\n\n * 2019-12-01-preview: :class:`PipelineRunsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.PipelineRunsOperations>`\n * 2020-11-01-preview: :class:`PipelineRunsOperations<azure.mgmt.containerre...
@property def private_endpoint_connections(self): 'Instance depends on the API version:\n\n * 2019-12-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.PrivateEndpointConnectionsOperations>`\n * 2020-11-01-preview: :class:`Pr...
-1,083,633,000,285,955,200
Instance depends on the API version: * 2019-12-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.PrivateEndpointConnectionsOperations>` * 2020-11-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerregistry.v2020_11_01_prev...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
private_endpoint_connections
AFengKK/azure-sdk-for-python
python
@property def private_endpoint_connections(self): 'Instance depends on the API version:\n\n * 2019-12-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.aio.operations.PrivateEndpointConnectionsOperations>`\n * 2020-11-01-preview: :class:`Pr...
@property def registries(self): 'Instance depends on the API version:\n\n * 2017-03-01: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2017_03_01.aio.operations.RegistriesOperations>`\n * 2017-10-01: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2017_10_01.aio.operations...
6,331,585,228,933,197,000
Instance depends on the API version: * 2017-03-01: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2017_03_01.aio.operations.RegistriesOperations>` * 2017-10-01: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2017_10_01.aio.operations.RegistriesOperations>` * 2018-02-01-preview: :class:`Registri...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
registries
AFengKK/azure-sdk-for-python
python
@property def registries(self): 'Instance depends on the API version:\n\n * 2017-03-01: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2017_03_01.aio.operations.RegistriesOperations>`\n * 2017-10-01: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2017_10_01.aio.operations...
@property def replications(self): 'Instance depends on the API version:\n\n * 2017-10-01: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2017_10_01.aio.operations.ReplicationsOperations>`\n * 2019-05-01: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2019_05_01.aio.op...
1,605,084,691,358,823,000
Instance depends on the API version: * 2017-10-01: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2017_10_01.aio.operations.ReplicationsOperations>` * 2019-05-01: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2019_05_01.aio.operations.ReplicationsOperations>` * 2019-12-01-preview: :class:`...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
replications
AFengKK/azure-sdk-for-python
python
@property def replications(self): 'Instance depends on the API version:\n\n * 2017-10-01: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2017_10_01.aio.operations.ReplicationsOperations>`\n * 2019-05-01: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2019_05_01.aio.op...
@property def runs(self): 'Instance depends on the API version:\n\n * 2018-09-01: :class:`RunsOperations<azure.mgmt.containerregistry.v2018_09_01.aio.operations.RunsOperations>`\n * 2019-04-01: :class:`RunsOperations<azure.mgmt.containerregistry.v2019_04_01.aio.operations.RunsOperations>`\n ...
-318,249,756,799,848,060
Instance depends on the API version: * 2018-09-01: :class:`RunsOperations<azure.mgmt.containerregistry.v2018_09_01.aio.operations.RunsOperations>` * 2019-04-01: :class:`RunsOperations<azure.mgmt.containerregistry.v2019_04_01.aio.operations.RunsOperations>` * 2019-06-01-preview: :class:`RunsOperations<azure.mgmt.contai...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
runs
AFengKK/azure-sdk-for-python
python
@property def runs(self): 'Instance depends on the API version:\n\n * 2018-09-01: :class:`RunsOperations<azure.mgmt.containerregistry.v2018_09_01.aio.operations.RunsOperations>`\n * 2019-04-01: :class:`RunsOperations<azure.mgmt.containerregistry.v2019_04_01.aio.operations.RunsOperations>`\n ...
@property def scope_maps(self): 'Instance depends on the API version:\n\n * 2019-05-01-preview: :class:`ScopeMapsOperations<azure.mgmt.containerregistry.v2019_05_01_preview.aio.operations.ScopeMapsOperations>`\n * 2020-11-01-preview: :class:`ScopeMapsOperations<azure.mgmt.containerregistry.v2020...
-7,855,342,236,790,188,000
Instance depends on the API version: * 2019-05-01-preview: :class:`ScopeMapsOperations<azure.mgmt.containerregistry.v2019_05_01_preview.aio.operations.ScopeMapsOperations>` * 2020-11-01-preview: :class:`ScopeMapsOperations<azure.mgmt.containerregistry.v2020_11_01_preview.aio.operations.ScopeMapsOperations>` * 2021-06-...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
scope_maps
AFengKK/azure-sdk-for-python
python
@property def scope_maps(self): 'Instance depends on the API version:\n\n * 2019-05-01-preview: :class:`ScopeMapsOperations<azure.mgmt.containerregistry.v2019_05_01_preview.aio.operations.ScopeMapsOperations>`\n * 2020-11-01-preview: :class:`ScopeMapsOperations<azure.mgmt.containerregistry.v2020...
@property def task_runs(self): 'Instance depends on the API version:\n\n * 2019-06-01-preview: :class:`TaskRunsOperations<azure.mgmt.containerregistry.v2019_06_01_preview.aio.operations.TaskRunsOperations>`\n ' api_version = self._get_api_version('task_runs') if (api_version == '2019-06-01-...
8,284,909,358,070,862,000
Instance depends on the API version: * 2019-06-01-preview: :class:`TaskRunsOperations<azure.mgmt.containerregistry.v2019_06_01_preview.aio.operations.TaskRunsOperations>`
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
task_runs
AFengKK/azure-sdk-for-python
python
@property def task_runs(self): 'Instance depends on the API version:\n\n * 2019-06-01-preview: :class:`TaskRunsOperations<azure.mgmt.containerregistry.v2019_06_01_preview.aio.operations.TaskRunsOperations>`\n ' api_version = self._get_api_version('task_runs') if (api_version == '2019-06-01-...
@property def tasks(self): 'Instance depends on the API version:\n\n * 2018-09-01: :class:`TasksOperations<azure.mgmt.containerregistry.v2018_09_01.aio.operations.TasksOperations>`\n * 2019-04-01: :class:`TasksOperations<azure.mgmt.containerregistry.v2019_04_01.aio.operations.TasksOperations>`\n...
-8,231,908,233,438,440,000
Instance depends on the API version: * 2018-09-01: :class:`TasksOperations<azure.mgmt.containerregistry.v2018_09_01.aio.operations.TasksOperations>` * 2019-04-01: :class:`TasksOperations<azure.mgmt.containerregistry.v2019_04_01.aio.operations.TasksOperations>` * 2019-06-01-preview: :class:`TasksOperations<azure.mgmt.c...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
tasks
AFengKK/azure-sdk-for-python
python
@property def tasks(self): 'Instance depends on the API version:\n\n * 2018-09-01: :class:`TasksOperations<azure.mgmt.containerregistry.v2018_09_01.aio.operations.TasksOperations>`\n * 2019-04-01: :class:`TasksOperations<azure.mgmt.containerregistry.v2019_04_01.aio.operations.TasksOperations>`\n...
@property def tokens(self): 'Instance depends on the API version:\n\n * 2019-05-01-preview: :class:`TokensOperations<azure.mgmt.containerregistry.v2019_05_01_preview.aio.operations.TokensOperations>`\n * 2020-11-01-preview: :class:`TokensOperations<azure.mgmt.containerregistry.v2020_11_01_previe...
-6,086,204,719,500,567,000
Instance depends on the API version: * 2019-05-01-preview: :class:`TokensOperations<azure.mgmt.containerregistry.v2019_05_01_preview.aio.operations.TokensOperations>` * 2020-11-01-preview: :class:`TokensOperations<azure.mgmt.containerregistry.v2020_11_01_preview.aio.operations.TokensOperations>` * 2021-06-01-preview: ...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
tokens
AFengKK/azure-sdk-for-python
python
@property def tokens(self): 'Instance depends on the API version:\n\n * 2019-05-01-preview: :class:`TokensOperations<azure.mgmt.containerregistry.v2019_05_01_preview.aio.operations.TokensOperations>`\n * 2020-11-01-preview: :class:`TokensOperations<azure.mgmt.containerregistry.v2020_11_01_previe...
@property def webhooks(self): 'Instance depends on the API version:\n\n * 2017-10-01: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2017_10_01.aio.operations.WebhooksOperations>`\n * 2019-05-01: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2019_05_01.aio.operations.Webhook...
-5,219,705,358,391,033,000
Instance depends on the API version: * 2017-10-01: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2017_10_01.aio.operations.WebhooksOperations>` * 2019-05-01: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2019_05_01.aio.operations.WebhooksOperations>` * 2019-12-01-preview: :class:`WebhooksOperatio...
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_container_registry_management_client.py
webhooks
AFengKK/azure-sdk-for-python
python
@property def webhooks(self): 'Instance depends on the API version:\n\n * 2017-10-01: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2017_10_01.aio.operations.WebhooksOperations>`\n * 2019-05-01: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2019_05_01.aio.operations.Webhook...
def set_axes_equal(ax: plt.Axes, limits=None): "Set 3D plot axes to equal scale.\n\n Make axes of 3D plot have equal scale so that spheres appear as\n spheres and cubes as cubes. Required since `ax.axis('equal')`\n and `ax.set_aspect('equal')` don't work on 3D.\n " if (limits is Non...
-8,363,108,060,664,645,000
Set 3D plot axes to equal scale. Make axes of 3D plot have equal scale so that spheres appear as spheres and cubes as cubes. Required since `ax.axis('equal')` and `ax.set_aspect('equal')` don't work on 3D.
env_pyrep/utils.py
set_axes_equal
Kexin-Wei/spinnup
python
def set_axes_equal(ax: plt.Axes, limits=None): "Set 3D plot axes to equal scale.\n\n Make axes of 3D plot have equal scale so that spheres appear as\n spheres and cubes as cubes. Required since `ax.axis('equal')`\n and `ax.set_aspect('equal')` don't work on 3D.\n " if (limits is Non...
def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, blades=None, fanmodules=None, ioms=None, oper_state=Non...
8,111,156,070,151,296,000
EquipmentChassis - a model defined in Swagger
intersight/models/equipment_chassis.py
__init__
fdemello/intersight-python
python
def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, blades=None, fanmodules=None, ioms=None, oper_state=Non...
@property def account_moid(self): '\n Gets the account_moid of this EquipmentChassis.\n The Account ID for this managed object. \n\n :return: The account_moid of this EquipmentChassis.\n :rtype: str\n ' return self._account_moid
2,961,041,142,107,580,000
Gets the account_moid of this EquipmentChassis. The Account ID for this managed object. :return: The account_moid of this EquipmentChassis. :rtype: str
intersight/models/equipment_chassis.py
account_moid
fdemello/intersight-python
python
@property def account_moid(self): '\n Gets the account_moid of this EquipmentChassis.\n The Account ID for this managed object. \n\n :return: The account_moid of this EquipmentChassis.\n :rtype: str\n ' return self._account_moid
@account_moid.setter def account_moid(self, account_moid): '\n Sets the account_moid of this EquipmentChassis.\n The Account ID for this managed object. \n\n :param account_moid: The account_moid of this EquipmentChassis.\n :type: str\n ' self._account_moid = account_moid
4,616,591,780,404,822,000
Sets the account_moid of this EquipmentChassis. The Account ID for this managed object. :param account_moid: The account_moid of this EquipmentChassis. :type: str
intersight/models/equipment_chassis.py
account_moid
fdemello/intersight-python
python
@account_moid.setter def account_moid(self, account_moid): '\n Sets the account_moid of this EquipmentChassis.\n The Account ID for this managed object. \n\n :param account_moid: The account_moid of this EquipmentChassis.\n :type: str\n ' self._account_moid = account_moid
@property def ancestors(self): '\n Gets the ancestors of this EquipmentChassis.\n Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. \n\n :return: The ancestors of this EquipmentChassis.\n :rtype: list[MoBaseMoRef]\n ' retu...
2,814,781,568,520,714,000
Gets the ancestors of this EquipmentChassis. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentChassis. :rtype: list[MoBaseMoRef]
intersight/models/equipment_chassis.py
ancestors
fdemello/intersight-python
python
@property def ancestors(self): '\n Gets the ancestors of this EquipmentChassis.\n Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. \n\n :return: The ancestors of this EquipmentChassis.\n :rtype: list[MoBaseMoRef]\n ' retu...
@ancestors.setter def ancestors(self, ancestors): '\n Sets the ancestors of this EquipmentChassis.\n Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. \n\n :param ancestors: The ancestors of this EquipmentChassis.\n :type: list[MoBas...
-3,336,301,955,569,473,500
Sets the ancestors of this EquipmentChassis. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentChassis. :type: list[MoBaseMoRef]
intersight/models/equipment_chassis.py
ancestors
fdemello/intersight-python
python
@ancestors.setter def ancestors(self, ancestors): '\n Sets the ancestors of this EquipmentChassis.\n Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. \n\n :param ancestors: The ancestors of this EquipmentChassis.\n :type: list[MoBas...
@property def create_time(self): '\n Gets the create_time of this EquipmentChassis.\n The time when this managed object was created. \n\n :return: The create_time of this EquipmentChassis.\n :rtype: datetime\n ' return self._create_time
-6,835,582,992,143,373,000
Gets the create_time of this EquipmentChassis. The time when this managed object was created. :return: The create_time of this EquipmentChassis. :rtype: datetime
intersight/models/equipment_chassis.py
create_time
fdemello/intersight-python
python
@property def create_time(self): '\n Gets the create_time of this EquipmentChassis.\n The time when this managed object was created. \n\n :return: The create_time of this EquipmentChassis.\n :rtype: datetime\n ' return self._create_time
@create_time.setter def create_time(self, create_time): '\n Sets the create_time of this EquipmentChassis.\n The time when this managed object was created. \n\n :param create_time: The create_time of this EquipmentChassis.\n :type: datetime\n ' self._create_time = create_time
8,204,742,738,341,537,000
Sets the create_time of this EquipmentChassis. The time when this managed object was created. :param create_time: The create_time of this EquipmentChassis. :type: datetime
intersight/models/equipment_chassis.py
create_time
fdemello/intersight-python
python
@create_time.setter def create_time(self, create_time): '\n Sets the create_time of this EquipmentChassis.\n The time when this managed object was created. \n\n :param create_time: The create_time of this EquipmentChassis.\n :type: datetime\n ' self._create_time = create_time
@property def mod_time(self): '\n Gets the mod_time of this EquipmentChassis.\n The time when this managed object was last modified. \n\n :return: The mod_time of this EquipmentChassis.\n :rtype: datetime\n ' return self._mod_time
-792,131,247,139,084,400
Gets the mod_time of this EquipmentChassis. The time when this managed object was last modified. :return: The mod_time of this EquipmentChassis. :rtype: datetime
intersight/models/equipment_chassis.py
mod_time
fdemello/intersight-python
python
@property def mod_time(self): '\n Gets the mod_time of this EquipmentChassis.\n The time when this managed object was last modified. \n\n :return: The mod_time of this EquipmentChassis.\n :rtype: datetime\n ' return self._mod_time
@mod_time.setter def mod_time(self, mod_time): '\n Sets the mod_time of this EquipmentChassis.\n The time when this managed object was last modified. \n\n :param mod_time: The mod_time of this EquipmentChassis.\n :type: datetime\n ' self._mod_time = mod_time
-2,044,530,991,584,952,800
Sets the mod_time of this EquipmentChassis. The time when this managed object was last modified. :param mod_time: The mod_time of this EquipmentChassis. :type: datetime
intersight/models/equipment_chassis.py
mod_time
fdemello/intersight-python
python
@mod_time.setter def mod_time(self, mod_time): '\n Sets the mod_time of this EquipmentChassis.\n The time when this managed object was last modified. \n\n :param mod_time: The mod_time of this EquipmentChassis.\n :type: datetime\n ' self._mod_time = mod_time
@property def moid(self): '\n Gets the moid of this EquipmentChassis.\n A unique identifier of this Managed Object instance. \n\n :return: The moid of this EquipmentChassis.\n :rtype: str\n ' return self._moid
7,679,648,597,472,186,000
Gets the moid of this EquipmentChassis. A unique identifier of this Managed Object instance. :return: The moid of this EquipmentChassis. :rtype: str
intersight/models/equipment_chassis.py
moid
fdemello/intersight-python
python
@property def moid(self): '\n Gets the moid of this EquipmentChassis.\n A unique identifier of this Managed Object instance. \n\n :return: The moid of this EquipmentChassis.\n :rtype: str\n ' return self._moid