Comments (4)
Confirmed. Thanks for the bug report!
from lightning.
Could you try with Cython 0.17.2? (released today)
If the bug is still there, we'll have to create a minimalistic reproducible example and file a bug report to Cython.
from lightning.
Yes, the same error on Cython 0.17.2:
cython --cplus lightning/dual_cd_fast.pyx
cython --cplus lightning/kernel_fast.pyx
Error compiling Cython file:
------------------------------------------------------------
...
if self.size + col_size > self.capacity:
if self.verbose >= 2:
print "Empty cache by half"
self._clear_columns(self.columns.size() / 2)
self.columns[0][i] = <double*> stdlib.calloc(self.n_samples,
^
------------------------------------------------------------
lightning/kernel_fast.pyx:202:23: Compiler crash in AnalyseExpressionsTransform
ModuleNode.body = StatListNode(kernel_fast.pyx:9:0)
StatListNode.stats[9] = StatListNode(kernel_fast.pyx:138:5)
StatListNode.stats[0] = CClassDefNode(kernel_fast.pyx:138:5,
as_name = u'KernelCache',
base_class_module = u'',
base_class_name = u'Kernel',
class_name = u'KernelCache',
module_name = u'',
visibility = u'private')
CClassDefNode.body = StatListNode(kernel_fast.pyx:140:4)
StatListNode.stats[5] = CFuncDefNode(kernel_fast.pyx:189:9,
args = [...]/2,
modifiers = [...]/0,
visibility = u'private')
File 'Nodes.py', line 343, in analyse_expressions: StatListNode(kernel_fast.pyx:190:8)
File 'Nodes.py', line 4308, in analyse_expressions: SingleAssignmentNode(kernel_fast.pyx:202:29)
File 'Nodes.py', line 4414, in analyse_types: SingleAssignmentNode(kernel_fast.pyx:202:29)
File 'ExprNodes.py', line 2601, in analyse_target_types: IndexNode(kernel_fast.pyx:202:23,
result_is_used = True,
use_managed_ref = True)
File 'ExprNodes.py', line 3017, in is_lvalue: IndexNode(kernel_fast.pyx:202:23,
result_is_used = True,
use_managed_ref = True)
Compiler crash traceback from this point on:
File "/usr/local/lib/python2.6/dist-packages/Cython/Compiler/ExprNodes.py", line 3017, in is_lvalue
return not base_type.base_type.is_array
AttributeError: 'CppClassType' object has no attribute 'base_type'
make: *** [lightning/kernel_fast.cpp] Error 1
from lightning.
I just tried on Cython v 0.19 and it compiles fine now (probably because I removed support for kernels).
from lightning.
Related Issues (20)
- Unsafe screening with CDClassifier? HOT 1
- Forgotten intercept in SGDRegressor HOT 2
- ModuleNotFoundError: No module named 'sklearn.externals.six' HOT 4
- How to pip sklearn-contrib-lightning HOT 2
- 2d errors when passing pandas DataFrame/Series
- Nonnegative penalties actually allowed in CDRegressors HOT 3
- FistaRegressor does not converge for real data HOT 3
- build pb on python 3.9 HOT 1
- Change assert imports HOT 2
- do you have Quantile Regression for spars data after one hot transformation
- do you have Regression for spars categorical big data after one hot transformation
- do you have support vector regression with soft margin and confidence interval ?
- do you have implementation for regression with confidence intervals ?
- Does lightning natively support multi-label HOT 1
- DOC: sometimes the Lasso solution is the same as sklearn, sometimes not HOT 5
- install help
- ENH - Add support of intercept in ``SDCARegressor`` HOT 1
- Why not initialize SAG/SAGA memory with 0 and divide by seen indices so far as in sklearn?
- Missing Support for class-weights specifications to tacke Disproportionate Number of Samples between dependent variable classes
- CDClassifier : error for penalty="l1" and penalty="l2", but no error for penalty="l1/l2" HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightning.