t-sakai-kure / pywsl Goto Github PK
View Code? Open in Web Editor NEWPython codes for weakly-supervised learning
License: MIT License
Python codes for weakly-supervised learning
License: MIT License
PNU/python/cpe_ene.py:49: RuntimeWarning: invalid value encountered in sqrt
return np.sqrt(dist)
PNU/python/pnu_sl.py:152: RuntimeWarning: invalid value encountered in greater_equal
f_p = np.mean(g_n >= 0) if n_n != 0 else 0
PNU/python/pnu_sl.py:161: RuntimeWarning: invalid value encountered in less_equal
f_nu = np.mean(g_u <= 0) if n_u != 0 else 0
Traceback (most recent call last):
File "./demo.py", line 64, in <module>
model='lm', nargout=3)
File "PNU/python/pnu_sl.py", line 92,in PNU_SL
sigma, lam = sigma_list[best_sigma_index], lambda_list[best_lambda_index]
UnboundLocalError: local variable 'best_sigma_index' referenced before assignment
Hello, I've been trying to run the demo file, and encountered an error presented above.
any way to fix this?
Thanks in advance.
Hello.
Currently, PNU_SL
function internally computes the cross validation score. I'd like to use PNU classification with a scikit-learn cross validator. Is it possible to implement PNU_SL
class conforming to scikit-learn?
Thank you.
Hi,
When I try to install using pip, I am getting the following error
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-dwrj5xhj/pywsl/
Could you please check if installation is working properly?
I was looking at your nnPU chainer
implementation. If I am not mistaken, it seems to download data from mldata.org. This sklearn
issue report discusses the instability of mldata.org and how it often goes down for extended periods of time. For example, mldata.org is down at the moment.
When you run the fetch_mldata
command, you get the warning in sklearn
:
DeprecationWarning: Function fetch_mldata is deprecated; fetch_mldata was deprecated in version 0.20 and will be removed in version 0.22
What are your thoughts on moving away from fetch_mldata
to an alternative? Different alternatives include:
torchvision
I would be happy to work with you on this if you are interested.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.