python-3.x - TypeError: multiply(): PySeal 库中的函数参数不兼容
问题描述
我正在研究基因组数据并使用 PySeal 库。我想使用该evaluator.multiply
函数使用另一个加密列值更新一个数据框列。但我收到一个错误:
这是我的源代码:
def multipication(value1,value2,value3):
out = Ciphertext()
out1 = Ciphertext()
evaluator.multiply(value1,value2,out)
evaluator.multiply(out,value3,out1)
return out1
enc_df.loc[indexes.index, "AVGPopulationScore"] = multipication(enc_df["EffectAlleleFrequency"], enc_df["EffectSize"], encryptedTwo)
注意:这里的 EffectAlleleFrequency、EffectSize 和 encryptedTwo 是 dataframe 中的加密值 ***寻求专家建议
解决方案
推荐阅读
- angular - 使用 @Input 装饰器从角度组件外部传递数据
- java - spring5 webflux,如何返回自定义json数据?
- javascript - 从指令内部动态设置类不能与 ng-animate 一起正常工作
- python - Cloud-ml 无法使用 tables_initializer 部署模型
- drag-and-drop - Acrobat 拖放按钮
- html - 如何在不使用浮动的情况下正确对齐此导航栏?
- sql - 在 oracle sql 中添加工作日
- excel - 自动更改工作表名称
- java - 如何检查 hadoop-common.jar 和 hadoop-aws.jar 是否同步?
- parallel-processing - Cloudsim 多数据中心