8.1.1.8.1.12. skimpy.utils.tensor

[———]

Copyright 2017 Laboratory of Computational Systems Biotechnology (LCSB), Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

8.1.1.8.1.12.1. Module Contents

8.1.1.8.1.12.1.1. Classes

Tensor

8.1.1.8.1.12.1.2. Attributes

sample_ix

class skimpy.Tensor(data, indexes, *args, **kwargs)

Bases: object

build_index_dict(self, index_names)
slice_by(self, slicer, value)

Returns a slice of the tensor along a value on a specific index

Parameters
  • slicer (str or pandas.Index) –

  • value

Returns

get_slice_index(self, slicer)

Utility function for getting the integer number of the index (0,1, or 2)

Parameters

slicer

Returns

mean(self, slicer, *args, **kwargs)

Flatten using the mean along an index

Parameters
  • slicer

  • args

  • kwargs

Returns

std(self, slicer, *args, **kwargs)

Flatten using the standard deviation along an index :param slicer: :param args: :param kwargs: :return:

quantile(self, slicer, quantile, *args, **kwargs)

Flatten using the standard deviation along an index :param slicer: :param args: :param kwargs: :return:

make_df(self, data, index1, index2)
skimpy.sample_ix