-
Notifications
You must be signed in to change notification settings - Fork 50
Tensor
Douglas Blank edited this page Apr 24, 2023
·
1 revision
class Tensor(Asset)
A Tensor asset.
def __init__(tensor=None, metadata=None, unserialize=False)
Create a tensor asset.
Arguments:
-
tensor
- a tensor (possibly-nested list of numbers)
Example:
>>> import kangas as kg
>>> dg = kg.DataGrid()
>>> for row in rows:
>>> tensor = row[0]
>>> kg.append([kg.Tensor(tensor)])
>>> dg.save("tensors.datagrid")
Kangas DataGrid is completely open source; sponsored by Comet ML
-
Home
- User Guides
- Installation - installing kangas
- Reading data - importing data
- Constructing DataGrids - building from scratch
- Exploring data - exploration and analysis
- Examples - scripts and notebooks
- Kangas Command-Line Interface
- Kangas Python API
- Integrations - with Hugging Face and Comet
- User Interface
- FAQ - Frequently Asked Questions
- Under the Hood
- Security - issues related to security
- Development - setting up a development environment
- Roadmap - plans and known issues
- User Guides