Join the newly launched
Discord community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.model.knots.get_knot_info
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
傳回節點數、節數位置以及權重的數量。
meridian.model.knots.get_knot_info(
n_times: int,
knots: (int | Collection[int] | None),
is_national: bool = False
) -> meridian.model.knots.KnotInfo
ARG |
n_times
|
資料中的時間範圍數量。
|
knots
|
選用整數或一組用來表示節數的整數
,用於估算時間效果。如果 knots 是整數集合,
knot 位置是由該集合提供。0 對應於
knot 在第一個時間範圍內對應
時間, ...,且 (n_times - 1) 對應至上次的 節
。當 knots 為整數時,會在節數中指定位置
不同時間範圍之間的間距 (包括以零和
(n_times - 1) 。當 knots 為 1 時,有一個常見的迴歸
所有時間範圍的係數。如果 knots 為 None ,則
使用的節數等於時間範圍數量。這是
相當於每個週期有自己的迴歸係數
|
is_national
|
布林值指標,是否為
達到 100 GB 上限
|
傳回 |
包含節數、節拍位置和
這些權重與節值相乘,得出時間變化
係數。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-23 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-10-23 (世界標準時間)。"],[],["The function `get_knot_info` determines knot-related information for time-effect estimation. It takes `n_times` (number of time periods), optional `knots` (locations or count), and `is_national` (national model indicator) as input. If `knots` is a collection, these are used directly as locations; if an integer, knots are equally spaced; `None` equals each time period having its own knot. The output includes the total number of knots, their locations, and associated weights.\n"]]