Skip to main content

Markov Category Module

Project description

FXTensor

マルコフ・テンソルを計算するモジュールです。

インストール

pip install fxtensor-salmon

使い方

JSON定義からFXTensorオブジェクトを作成する方法は以下の通りです。

import numpy as np
from fxtensor import FXTensor

json_data = {
  "profile": [[2], [2]],
  "strands": [
    {"from": [0], "to": [0], "weight": 0.3},
    {"from": [0], "to": [1], "weight": 0.7},
    {"from": [1], "to": [0], "weight": 0.5},
    {"from": [1], "to": [1], "weight": 0.5}
  ]
}

# JSONデータからテンソルを作成
stochastic_map = FXTensor.from_json(json_data)

print(stochastic_map)
# 出力予測: FXTensor(profile=[[2], [2]], shape=(2, 2))

print(stochastic_map.data)
# 出力予測:
# [[0.3 0.7]
#  [0.5 0.5]]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fxtensor_salmon-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fxtensor_salmon-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file fxtensor_salmon-0.1.0.tar.gz.

File metadata

  • Download URL: fxtensor_salmon-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for fxtensor_salmon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 709246caada1d00ad17c9c80465bce73219728a4d4fe7e8ad41f9082fd58c526
MD5 97dbbe5bd29e2ce5c971bac0b73a34b2
BLAKE2b-256 be2359820366c37fc5feb85f3b268e8765a507c0a41cb48f0b6a42c8e8efca55

See more details on using hashes here.

File details

Details for the file fxtensor_salmon-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fxtensor_salmon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb5e7296296a48feacb29890e73d560c405b4b36cda8308ecef34ae8d7054905
MD5 47b0d1b5f7c7817fc6df691a0ac627ad
BLAKE2b-256 7bdf427788d29fe243bb5438cd026e474f169fb5518e54ffd2bed652d1c135a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page