cost 131 ms
在各個行上迭代 function 直到滿足條件,然后繼續下一行

[英]Iterate a function over individual rows until condition is met, then move on to the next row

我正在使用生命周期庫來構建客戶生命周期價值 model。 該庫附帶一個名為conditional_expected_number_of_purchases_up_to_time的方法,該方法允許您預測數據集中每個客戶在指定時間段內的購買情況。 這是我正在使用的 dataframe: datafra ...

生命周期庫 - 使用函數時計算 CLV 的問題:GammaGammaFitter 的 customer_lifetime_value

[英]lifetimes library - ISSUE of calculating CLV when using function: customer_lifetime_value of GammaGammaFitter

我正在嘗試使用lifetimes python 庫計算 CLV(客戶生命價值) 所以,我在裝修購買行為數據ParetoNBDFitter及配件購買價格數據GammaGammaFitter 。 並且當我嘗試根據GammaGammaFitter.customer_lifetime_value()計算 ...

使用 Spark/Python 使用 Lifetimes python package 計算指標 [對象沒有屬性“sort_values”]

[英]Calculate metrics with Lifetimes python package with Spark/Python [object has no attribute 'sort_values']

我在我的 spark 集群中使用 Lifetimes python package 並嘗試計算一些指標——Lifetimes package 我一直在使用火花 2.4.2。 我有如下示例的數據框(原始數據有 800K 記錄),包含“invoce_date”列和其他一些列(id、label、縣等) ...

生命周期 package 給出不一致的結果

[英]Lifetimes package gives inconsistent results

我正在使用Lifetimes來計算我的一些客戶的 CLV。 我有交易數據,並且通過summary_data_from_transaction_data (可以在此處找到實現)我想計算每個客戶的新近度、頻率和時間間隔T。 不幸的是,該方法似乎無法正確計算頻率。 這是測試我的數據集的代碼: 根據代碼,結 ...

Python錯誤“ AttributeError:模塊'scipy.misc'沒有屬性'logsumexp'”

[英]Python error “AttributeError: module 'scipy.misc' has no attribute 'logsumexp' ”

我正在嘗試使用lifetimes標頭從給定數據創建新近度,頻率和T,但它始終顯示以下錯誤AttributeError:模塊'scipy.misc'沒有屬性'logsumexp' 收到以下輸出: SciPy的版本為1.3.0。代碼應生成一個包含每個客戶的新近度,頻率和T的表 ...

Calibration_and_holdout_data:AttributeError:“ int”對象沒有屬性“ n”

[英]calibration_and_holdout_data: AttributeError: 'int' object has no attribute 'n'

我正在嘗試使用生命周期庫運行BG / NBD模型。 我所有的分析都基於以下示例,但具有我自己的數據: https : //towardsdatascience.com/whats-a-customer-worth-8daf183f8a4f 不知何故,我收到以下錯誤,並且在閱讀50篇以上s ...

如何使用Python中的生命周期包獲得客戶生命周期的期望值

[英]How to get the expected value of customer lifetime using lifetimes package in Python

python程序包的生存期使用BG / NBD方法,與R程序包BTYD相同。 在R論文中,我們可以在給定的時間范圍內估算任何新收購客戶的客戶生存期(CLV)包。 但是,我無法在python中找到等效功能。 似乎所有我能找到的信息都是以過去的頻率和新近度作為條件概率來估計CLV。 ...


排序:
質量:
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM