anyang-kevin
anyang-kevin
> C(gender, contr.treatment(base='female')) Thanks for your reply,but it dosen't work. code is : `cph.fit(for_df,duration_col='OS.time',event_col='OS',formula="C('gender', contr.treatment(base='female'))")` and error: formulaic.errors.FactorEvaluationError: Unable to evaluate factor `C('gender', contr.treatment(base='female'))`. [NameError: name 'contr' is not defined]...
> 1. My formulaic version is 0.2.4 2. `gender` is dataframe's colname, not a variable.So if I use `C(gender,contr.treatment(...))`, I will receive an error message: formulaic.errors.FactorEvaluationError: Unable to evaluate factor...
> Try upgrading formualic to 0.5.2, `pip install formulaic==0.5.2` sorry, my python version is 3.7.0, cant update to 0.5.2, it need python version >= 3.7.2, but i have to keep...
> You'll have to use pandas to manipulate the dataframe prior to providing it to `.fit` then. Ex: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.get_dummies.html Actually, That's what I want to know after I solve this...
The following packages will be downloaded: package | build ---------------------------|----------------- curl-7.88.1 | h37d81fd_2 81 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main cython-0.28.5 | py35hf484d3e_0 2.8 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main epic2-0.0.16 | py35h4e20536_0 9.9 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda htslib-1.9 |...
> There is something weird about your htslib. Have you tried just pip installing? Sorry, I am unable to use pip to install packages due to the requirement for maintaining...
Hello, I try to install epic2 by pip and I recived error with pysam. ` File "/public/home/pip-build-77gjoy9u/epic2/setup.py", line 3, in import pysam ModuleNotFoundError: No module named 'pysam' ` also ,...
`models.download_models(force_update = True) --- Logging error --- Traceback (most recent call last): File "C:\Users\anyang\AppData\Local\Programs\Python\Python37\lib\logging\__init__.py", line 985, in emit stream.write(msg) File "C:\Users\anyang\AppData\Local\Programs\Python\Python37\lib\idlelib\run.py", line 362, in write return self.shell.write(s, self.tags) File "C:\Users\anyang\AppData\Local\Programs\Python\Python37\lib\idlelib\rpc.py",...
> @anyang-kevin, it should be fixed now. Could you check? No.I still receive the same error. Should I update my package?
Now I can use MODEL in Centos system and the celltypist download from conda. But I also cant use in Windows system, which download in pip. And my Windows is...