cost 79 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