Simple structured learning framework for python

Overview

Build Status pypi version licence DOI

PyStruct

PyStruct aims at being an easy-to-use structured learning and prediction library. Currently it implements only max-margin methods and a perceptron, but other algorithms might follow.

The goal of PyStruct is to provide a well-documented tool for researchers as well as non-experts to make use of structured prediction algorithms. The design tries to stay as close as possible to the interface and conventions of scikit-learn.

You can install pystruct using

pip install pystruct

Some of the functionality (namely OneSlackSSVM and NSlackSSVM) requires that cvxopt is installed. See the installation instructions for more details.

The full documentation and installation instructions can be found at the website: http://pystruct.github.io

You can contact the authors either via the mailing list or on github.

Currently the project is mostly maintained by Andreas Mueller, but contributions are very welcome.

Jean-Luc Meunier (Naver Labs Europe) contributed a new model and did some maintenance, in the course of the EU READ project. See READ_Contribution.md

Comments
  • Improved Parallelization for Training and Inference

    Improved Parallelization for Training and Inference

    Jan 8, 2015 EDIT: Adding TL;DR to this original comment to make it easier to review, since this PR has become something of a monster.

    Summary of changes: Added mixin class ParallelMixin in new pystruct.utils.parallel that does the following:

    • adds private method _spawn_pool to spawn a pool as attribute
    • pool can be ThreadPool, MemmapingPool or Pool, depending on ecosystem and parameters
    • exposes public method parallel with same api as standard library map, taking as args function to be mapped and mappable args iterable
    • __getstate__ and __setstate__ handle pool attribute
    • parallel method handles KeyboardInterrupt somewhat gracefully, allowing for user interruption that stops training but preserves model object and pool in usable forms.
    • removal of all Parallel calls and any parallelization logic from anywhere in module other than utils.parallel
    • added hacky wrappers for all functions that are currently used as mappable, could potentially change to decorator but then would have to update usage of original function elsewhere.
    • other stuff?

    Original comment:

    Hi! So using Parallel causes the respawning of pools with every iteration, which can be slow from the start, causes memory issues and is very slow once the matrices get to be at all large. @amueller what do you think of this approach? I am sure there are other moving parts that I'm not aware of that need to be considered, but replacing the Parallel calls as in this PR in both OneSlackSSVM and SubgradientSSVM worked really well for me.

    opened by robbymeals 78
  • WIP: Bundling AD3 with pystruct

    WIP: Bundling AD3 with pystruct

    This a PR to explore bundling AD3 directly into the library. It seems fairly self-contained, though it is 15 MB of which 5MB is data, and 7MB is Eigen.

    The python bindings need to moved around to make building smooth.

    opened by zaxtax 34
  • Cannot install on MacOSX

    Cannot install on MacOSX

    Hello! I'm very interested in using pystruct, and attempting to install on MacOSX 10.8.4. My python info is:

    Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45)
    [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
    

    I used easy_install to install pip, and the following happens when I attempt to install pystruct:

    max$ sudo pip install pystruct
    Password:
    Downloading/unpacking pystruct
      Downloading pystruct-0.1.1.tar.gz (6.4MB): 6.4MB downloaded
      Running setup.py egg_info for package pystruct
    
        warning: no previously-included files matching '*.pyc' found under directory 'doc'
        warning: no previously-included files matching '*.pyo' found under directory 'doc'
        warning: no previously-included files matching '*.pyc' found under directory 'tests'
        warning: no previously-included files matching '*.pyo' found under directory 'tests'
        no previously-included directories found matching 'docs/_build'
        no previously-included directories found matching 'docs/auto_examples'
        no previously-included directories found matching 'docs/generated'
    Downloading/unpacking ad3 (from pystruct)
      Downloading ad3-2.0.tar.gz (518kB): 518kB downloaded
      Running setup.py egg_info for package ad3
    
    Downloading/unpacking pyqpbo (from pystruct)
      Downloading pyqpbo-0.1.tar.gz (76kB): 76kB downloaded
      Running setup.py egg_info for package pyqpbo
    
    Installing collected packages: pystruct, ad3, pyqpbo
      Running setup.py install for pystruct
    
        warning: no previously-included files matching '*.pyc' found under directory 'doc'
        warning: no previously-included files matching '*.pyo' found under directory 'doc'
        warning: no previously-included files matching '*.pyc' found under directory 'tests'
        warning: no previously-included files matching '*.pyo' found under directory 'tests'
        no previously-included directories found matching 'docs/_build'
        no previously-included directories found matching 'docs/auto_examples'
        no previously-included directories found matching 'docs/generated'
        building 'pystruct.models.utils' extension
        clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/utils.c -o build/temp.macosx-10.8-intel-2.7/src/utils.o
        clang: error: no such file or directory: 'src/utils.c'
        clang: error: no input files
        error: command 'clang' failed with exit status 1
        Complete output from command /usr/bin/python -c "import setuptools;__file__='/private/tmp/pip_build_root/pystruct/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8TrbT9-record/install-record.txt --single-version-externally-managed:
        running install
    
    running build
    
    running build_py
    
    creating build
    
    creating build/lib.macosx-10.8-intel-2.7
    
    creating build/lib.macosx-10.8-intel-2.7/pystruct
    
    copying pystruct/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct
    
    copying pystruct/plot_learning.py -> build/lib.macosx-10.8-intel-2.7/pystruct
    
    creating build/lib.macosx-10.8-intel-2.7/pystruct/learners
    
    copying pystruct/learners/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
    
    copying pystruct/learners/downhill_simplex_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
    
    copying pystruct/learners/latent_structured_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
    
    copying pystruct/learners/n_slack_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
    
    copying pystruct/learners/one_slack_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
    
    copying pystruct/learners/ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
    
    copying pystruct/learners/structured_perceptron.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
    
    copying pystruct/learners/subgradient_latent_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
    
    copying pystruct/learners/subgradient_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
    
    copying pystruct/learners/svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
    
    creating build/lib.macosx-10.8-intel-2.7/pystruct/inference
    
    copying pystruct/inference/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/inference
    
    copying pystruct/inference/inference_methods.py -> build/lib.macosx-10.8-intel-2.7/pystruct/inference
    
    copying pystruct/inference/linear_programming.py -> build/lib.macosx-10.8-intel-2.7/pystruct/inference
    
    creating build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/base.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/chain_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/edge_feature_graph_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/graph_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/grid_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/latent_graph_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/latent_grid_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/latent_node_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/multilabel_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/setup.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    copying pystruct/models/unstructured_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
    
    creating build/lib.macosx-10.8-intel-2.7/pystruct/utils
    
    copying pystruct/utils/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
    
    copying pystruct/utils/backports.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
    
    copying pystruct/utils/graph.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
    
    copying pystruct/utils/inference.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
    
    copying pystruct/utils/logging.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
    
    copying pystruct/utils/plotting.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
    
    creating build/lib.macosx-10.8-intel-2.7/pystruct/datasets
    
    copying pystruct/datasets/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
    
    copying pystruct/datasets/letters.py -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
    
    copying pystruct/datasets/scene.py -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
    
    copying pystruct/datasets/synthetic_grids.py -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
    
    creating build/lib.macosx-10.8-intel-2.7/pystruct/tests
    
    copying pystruct/tests/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests
    
    copying pystruct/tests/test_libraries.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests
    
    creating build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_binary_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_crammer_singer_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_edge_feature_graph_learning.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_graph_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_latent_node_crf_learning.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_latent_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_n_slack_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_one_slack_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_perceptron.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_primal_dual.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_structured_perceptron.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_subgradient_latent_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    copying pystruct/tests/test_learners/test_subgradient_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
    
    creating build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
    
    copying pystruct/tests/test_models/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
    
    copying pystruct/tests/test_models/test_chain_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
    
    copying pystruct/tests/test_models/test_directional_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
    
    copying pystruct/tests/test_models/test_edge_feature_graph_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
    
    copying pystruct/tests/test_models/test_graph_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
    
    copying pystruct/tests/test_models/test_grid_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
    
    copying pystruct/tests/test_models/test_latent_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
    
    copying pystruct/tests/test_models/test_latent_node_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
    
    copying pystruct/tests/test_models/test_multilabel_problem.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
    
    creating build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_inference
    
    copying pystruct/tests/test_inference/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_inference
    
    copying pystruct/tests/test_inference/test_exact_inference.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_inference
    
    creating build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_utils
    
    copying pystruct/tests/test_utils/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_utils
    
    copying pystruct/tests/test_utils/test_utils_inference.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_utils
    
    running egg_info
    
    writing requirements to pystruct.egg-info/requires.txt
    
    writing pystruct.egg-info/PKG-INFO
    
    writing top-level names to pystruct.egg-info/top_level.txt
    
    writing dependency_links to pystruct.egg-info/dependency_links.txt
    
    warning: manifest_maker: standard file '-c' not found
    
    
    
    reading manifest file 'pystruct.egg-info/SOURCES.txt'
    
    reading manifest template 'MANIFEST.in'
    
    warning: no previously-included files matching '*.pyc' found under directory 'doc'
    
    warning: no previously-included files matching '*.pyo' found under directory 'doc'
    
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    
    no previously-included directories found matching 'docs/_build'
    
    no previously-included directories found matching 'docs/auto_examples'
    
    no previously-included directories found matching 'docs/generated'
    
    writing manifest file 'pystruct.egg-info/SOURCES.txt'
    
    copying pystruct/datasets/letters.pickle -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
    
    copying pystruct/datasets/scene.pickle -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
    
    running build_ext
    
    building 'pystruct.models.utils' extension
    
    creating build/temp.macosx-10.8-intel-2.7
    
    creating build/temp.macosx-10.8-intel-2.7/src
    
    clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/utils.c -o build/temp.macosx-10.8-intel-2.7/src/utils.o
    
    clang: error: no such file or directory: 'src/utils.c'
    
    clang: error: no input files
    
    error: command 'clang' failed with exit status 1
    
    ----------------------------------------
    Cleaning up...
    Command /usr/bin/python -c "import setuptools;__file__='/private/tmp/pip_build_root/pystruct/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8TrbT9-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/tmp/pip_build_root/pystruct
    Storing complete log in /Users/max/Library/Logs/pip.log
    

    Any help would be greatly appreciated. Thank you!

    opened by mbforbes 21
  • opengm in travis build

    opengm in travis build

    Travis now builds opengm. Unfortunately, this adds 10-15 minutes to build. We can shorten this time by

    1. not using all of opengm external inference libraries
    2. bundling opengm and getting it through apt-get
    opened by fgregg 20
  • cvxopt error with LatentGridCRF

    cvxopt error with LatentGridCRF

    With cvxopt 1.1.7 on a win64 machine I get an error while trying out the example (https://pystruct.github.io/auto_examples/plot_latent_crf.html#plot-latent-crf-py).

    It says TypeError: Non-numeric type in list in \pystruct\inference\linear_programming.pyc in line 82 at A = cvxopt.spmatrix(data, I, J).

    cvxopt alone work very well when trying to init sparse matrices since

    from cvxopt import spmatrix D = spmatrix([1., 2.], [0, 1], [0, 1], (4,2))

    works.

    opened by hniemeyer 15
  • Test failure in latent SVMs

    Test failure in latent SVMs

    Got this from a fresh clone. Maybe assert_array_almost_equal should be used here?

    ======================================================================
    FAIL: test_latent_svm.test_with_crosses_bad_init
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
        self.test(*self.arg)
      File "/scratch/apps/src/pystruct/tests/test_learners/test_latent_svm.py", line 80, in test_with_crosses_bad_init
        assert_array_equal(np.array(Y_pred), Y)
      File "/usr/lib/pymodules/python2.7/numpy/testing/utils.py", line 719, in assert_array_equal
        verbose=verbose, header='Arrays are not equal')
      File "/usr/lib/pymodules/python2.7/numpy/testing/utils.py", line 645, in assert_array_compare
        raise AssertionError(msg)
    AssertionError: 
    Arrays are not equal
    
    (mismatch 2.5%)
     x: array([[[0, 0, 0, 0, 0, 0, 0, 0],
            [0, 0, 0, 0, 0, 1, 0, 0],
            [0, 0, 0, 0, 1, 1, 1, 0],...
     y: array([[[0, 0, 0, 0, 0, 0, 0, 0],
            [0, 0, 0, 0, 0, 1, 0, 0],
            [0, 0, 0, 0, 1, 1, 1, 0],...
    
    opened by larsmans 14
  • [WIP] rename [batch_]psi methods to [batch_]joint_features

    [WIP] rename [batch_]psi methods to [batch_]joint_features

    I haven't run the tests yet; this affects the entire codebase and the full test suite is so slow on my box that I'm leaving it to Travis.

    What to do with size_psi? Rename it joint_size?

    opened by larsmans 12
  • WIP Frank wolfe

    WIP Frank wolfe

    This is the implementation of the Block-coordinate Frank Wolfe by Xianghang Liu :)

    • [x] rescale C to be consistent with the rest of pystruct
    • [ ] increase test coverage
    • [x] use batch_psi and batch_loss_augmented_inference
    • [x] add objective curves and timing information
    • [x] write documentation
    • [x] rescale objective to be consistent with the rest of pystruct
    • [ ] benchmark
    • [ ] rename estimator to BCFW (should we? that is the name used in the paper)
    • [x] allow stopping with ctrl+c
    • [x] implement averaging step
    • [ ] implement averaging for batch version
    • [x] make verbosity actually control verbosity
    • [ ] Allow min-batches for parallel inference on multi-core computers.
    opened by amueller 11
  • WIP Infer n_features and n_states in CRFs

    WIP Infer n_features and n_states in CRFs

    This is my shot at inferring n_features and n_states in CRFs. I just realized that I shouldn't test n_states the way I do whoops. This leaves open the possibility of setting everything by hand (for example n_states if you don't have the full dataset or something), in which case you don't need to call initialize.

    Still very much WIP.

    opened by amueller 8
  • website: fix links to classes in examples

    website: fix links to classes in examples

    There is this fancy script that creates links for all classes and functions in the examples to the documentation. In scikit-learn that works for classes, in pystruct it doesn't :-/

    opened by amueller 7
  • Nodes would be better called examples

    Nodes would be better called examples

    In http://pystruct.github.io/generated/pystruct.models.GraphCRF.html#pystruct.models.GraphCRF

    Node features are given as a tuple of shape (n_nodes, n_features), An instance x is represented as a tuple (features, edges) where edges is an array of shape (n_edges, 2), representing the graph.
    

    Might be better as something like

    Examples, i.e. X, are given as a tuple of length n_examples. An example, x, is represented as a tuple (features, edges) where features is numpy array of shape (n_nodes, attributes), and edges is is an array of shape (n_edges, 2), representing the graph.
    
    Labels, Y, are given as tuple of length n_examples. Each label, y, in Y is given by a numpy array of shape (n_nodes,).
    
    opened by fgregg 7
  • SSVM for Clustering

    SSVM for Clustering

    Thanks for your great work. Can I use this library to implement the idea of this paper? I.e., to predict the clustering of the examples, where one example x_i include n object and the labels yi is the sets denoting the clusters; e.g. xi = [1,2,3,4,5], yi = [(1,2,5),(3,4)].

    opened by fatcatZF 0
  • Installation Failed on Google Collab and Kaggle Notebook

    Installation Failed on Google Collab and Kaggle Notebook

    I'm trying to run !pip install pystruct from both colab.research.google.com and Kaggle notebook, but all of them are failing.

    Log from colab.research.google.com

    ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c4ve8qgd/pystruct_138dcfb6a2f64973905f1e91dac787e6/setup.py'"'"'; __file__='"'"'/tmp/pip-install-c4ve8qgd/pystruct_138dcfb6a2f64973905f1e91dac787e6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-wnpk8rg0/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/pystruct Check the logs for full command output.

    Log from Kaggle notebook

    It's very long, hence I put it on pastebin instead.

    Cheers,

    opened by thariq-nugrohotomo 3
  • GraphCRF - error in edge list example, very long training gprocess

    GraphCRF - error in edge list example, very long training gprocess

    Hello!

    I reviewed examples of GraphCRF for OCR letter recognition in user guide.

    Q1:I just wanted to check whether I got everything right - as I see the example for OCR letter recognition shows edge array as

    array([[0, 1, 2, 3, 4, 5, 6, 7],
             [1, 2, 3, 4, 5, 6, 7, 8]]
    

    The shape of array above is (2, n_edges), while the documentation state that we need array of shape (n_edges, 2).

    Q2: Training of GraphCRF taking a lot of time (~7h with FrankoWolfeSVM, with others learners even more) on my data. Although I have near 300 data points. Is there any tips how I can speed up the process?

    Thanks in advance, Mariia.

    opened by mariababich 0
  • error on databricks install (7.2 (includes Apache Spark 3.0.0, Scala 2.12))

    error on databricks install (7.2 (includes Apache Spark 3.0.0, Scala 2.12))

       command: /databricks/python3/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e9eawint/pystruct/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e9eawint/pystruct/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-vudsr9vz
           cwd: /tmp/pip-install-e9eawint/pystruct/
      Complete output (220 lines):
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.7
      creating build/lib.linux-x86_64-3.7/pystruct
      copying pystruct/plot_learning.py -> build/lib.linux-x86_64-3.7/pystruct
      copying pystruct/__init__.py -> build/lib.linux-x86_64-3.7/pystruct
      creating build/lib.linux-x86_64-3.7/pystruct/learners
      copying pystruct/learners/subgradient_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
      copying pystruct/learners/structured_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/learners
      copying pystruct/learners/one_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
      copying pystruct/learners/frankwolfe_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
      copying pystruct/learners/downhill_simplex_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
      copying pystruct/learners/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/learners
      copying pystruct/learners/latent_structured_svm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
      copying pystruct/learners/svm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
      copying pystruct/learners/n_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
      copying pystruct/learners/ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
      copying pystruct/learners/subgradient_latent_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
      creating build/lib.linux-x86_64-3.7/pystruct/inference
      copying pystruct/inference/linear_programming.py -> build/lib.linux-x86_64-3.7/pystruct/inference
      copying pystruct/inference/common.py -> build/lib.linux-x86_64-3.7/pystruct/inference
      copying pystruct/inference/inference_methods.py -> build/lib.linux-x86_64-3.7/pystruct/inference
      copying pystruct/inference/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/inference
      copying pystruct/inference/maxprod.py -> build/lib.linux-x86_64-3.7/pystruct/inference
      creating build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/unstructured_svm.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/latent_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/setup.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/latent_node_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/multilabel_svm.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/node_type_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/typed_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/latent_grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/base.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/chain_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
      copying pystruct/models/edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
      creating build/lib.linux-x86_64-3.7/pystruct/utils
      copying pystruct/utils/inference.py -> build/lib.linux-x86_64-3.7/pystruct/utils
      copying pystruct/utils/logging.py -> build/lib.linux-x86_64-3.7/pystruct/utils
      copying pystruct/utils/plotting.py -> build/lib.linux-x86_64-3.7/pystruct/utils
      copying pystruct/utils/graph_functions.py -> build/lib.linux-x86_64-3.7/pystruct/utils
      copying pystruct/utils/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/utils
      copying pystruct/utils/graph.py -> build/lib.linux-x86_64-3.7/pystruct/utils
      creating build/lib.linux-x86_64-3.7/pystruct/datasets
      copying pystruct/datasets/dataset_loaders.py -> build/lib.linux-x86_64-3.7/pystruct/datasets
      copying pystruct/datasets/synthetic_grids.py -> build/lib.linux-x86_64-3.7/pystruct/datasets
      copying pystruct/datasets/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/datasets
      creating build/lib.linux-x86_64-3.7/pystruct/tests
      copying pystruct/tests/test_datasets.py -> build/lib.linux-x86_64-3.7/pystruct/tests
      copying pystruct/tests/test_libraries.py -> build/lib.linux-x86_64-3.7/pystruct/tests
      copying pystruct/tests/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/tests
      creating build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_primal_dual.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_edge_feature_graph_learning.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_n_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_binary_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_latent_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_frankwolfe_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_subgradient_latent_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_latent_node_crf_learning.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_structured_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_crammer_singer_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_subgradient_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_one_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      copying pystruct/tests/test_learners/test_graph_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
      creating build/lib.linux-x86_64-3.7/pystruct/tests/test_models
      copying pystruct/tests/test_models/test_grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
      copying pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
      copying pystruct/tests/test_models/test_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
      copying pystruct/tests/test_models/test_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
      copying pystruct/tests/test_models/test_chain_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
      copying pystruct/tests/test_models/test_latent_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
      copying pystruct/tests/test_models/test_multilabel_problem.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
      copying pystruct/tests/test_models/test_directional_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
      copying pystruct/tests/test_models/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
      copying pystruct/tests/test_models/test_latent_node_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
      creating build/lib.linux-x86_64-3.7/pystruct/tests/test_inference
      copying pystruct/tests/test_inference/test_maxprod.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference
      copying pystruct/tests/test_inference/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference
      copying pystruct/tests/test_inference/test_exact_inference.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference
      creating build/lib.linux-x86_64-3.7/pystruct/tests/test_utils
      copying pystruct/tests/test_utils/test_utils_logging.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils
      copying pystruct/tests/test_utils/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils
      copying pystruct/tests/test_utils/test_utils_inference.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils
      running egg_info
      writing pystruct.egg-info/PKG-INFO
      writing dependency_links to pystruct.egg-info/dependency_links.txt
      writing requirements to pystruct.egg-info/requires.txt
      writing top-level names to pystruct.egg-info/top_level.txt
      reading manifest file 'pystruct.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*' under directory 'tests'
      warning: no previously-included files matching '*.pyc' found under directory 'doc'
      warning: no previously-included files matching '*.pyo' found under directory 'doc'
      warning: no previously-included files matching '*.pyc' found under directory 'tests'
      warning: no previously-included files matching '*.pyo' found under directory 'tests'
      no previously-included directories found matching 'docs/_build'
      no previously-included directories found matching 'docs/auto_examples'
      no previously-included directories found matching 'docs/generated'
      writing manifest file 'pystruct.egg-info/SOURCES.txt'
      copying pystruct/inference/_viterbi.c -> build/lib.linux-x86_64-3.7/pystruct/inference
      copying pystruct/datasets/letters.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets
      copying pystruct/datasets/scene.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets
      copying pystruct/datasets/snakes.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets
      Fixing build/lib.linux-x86_64-3.7/pystruct/plot_learning.py build/lib.linux-x86_64-3.7/pystruct/__init__.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/learners/one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/frankwolfe_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/downhill_simplex_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/__init__.py build/lib.linux-x86_64-3.7/pystruct/learners/latent_structured_svm.py build/lib.linux-x86_64-3.7/pystruct/learners/svm.py build/lib.linux-x86_64-3.7/pystruct/learners/n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_latent_ssvm.py build/lib.linux-x86_64-3.7/pystruct/inference/linear_programming.py build/lib.linux-x86_64-3.7/pystruct/inference/common.py build/lib.linux-x86_64-3.7/pystruct/inference/inference_methods.py build/lib.linux-x86_64-3.7/pystruct/inference/__init__.py build/lib.linux-x86_64-3.7/pystruct/inference/maxprod.py build/lib.linux-x86_64-3.7/pystruct/models/unstructured_svm.py build/lib.linux-x86_64-3.7/pystruct/models/graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/setup.py build/lib.linux-x86_64-3.7/pystruct/models/latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/models/multilabel_svm.py build/lib.linux-x86_64-3.7/pystruct/models/node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/__init__.py build/lib.linux-x86_64-3.7/pystruct/models/typed_crf.py build/lib.linux-x86_64-3.7/pystruct/models/grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/base.py build/lib.linux-x86_64-3.7/pystruct/models/chain_crf.py build/lib.linux-x86_64-3.7/pystruct/models/edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/utils/inference.py build/lib.linux-x86_64-3.7/pystruct/utils/logging.py build/lib.linux-x86_64-3.7/pystruct/utils/plotting.py build/lib.linux-x86_64-3.7/pystruct/utils/graph_functions.py build/lib.linux-x86_64-3.7/pystruct/utils/__init__.py build/lib.linux-x86_64-3.7/pystruct/utils/graph.py build/lib.linux-x86_64-3.7/pystruct/datasets/dataset_loaders.py build/lib.linux-x86_64-3.7/pystruct/datasets/synthetic_grids.py build/lib.linux-x86_64-3.7/pystruct/datasets/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_datasets.py build/lib.linux-x86_64-3.7/pystruct/tests/test_libraries.py build/lib.linux-x86_64-3.7/pystruct/tests/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_primal_dual.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_edge_feature_graph_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_binary_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_frankwolfe_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_node_crf_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_crammer_singer_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_graph_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_chain_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_multilabel_problem.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_directional_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_maxprod.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_exact_inference.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_logging.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_inference.py
      Skipping optional fixer: buffer
      Skipping optional fixer: idioms
      Skipping optional fixer: set_literal
      Skipping optional fixer: ws_comma
      Fixing build/lib.linux-x86_64-3.7/pystruct/plot_learning.py build/lib.linux-x86_64-3.7/pystruct/__init__.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/learners/one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/frankwolfe_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/downhill_simplex_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/__init__.py build/lib.linux-x86_64-3.7/pystruct/learners/latent_structured_svm.py build/lib.linux-x86_64-3.7/pystruct/learners/svm.py build/lib.linux-x86_64-3.7/pystruct/learners/n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_latent_ssvm.py build/lib.linux-x86_64-3.7/pystruct/inference/linear_programming.py build/lib.linux-x86_64-3.7/pystruct/inference/common.py build/lib.linux-x86_64-3.7/pystruct/inference/inference_methods.py build/lib.linux-x86_64-3.7/pystruct/inference/__init__.py build/lib.linux-x86_64-3.7/pystruct/inference/maxprod.py build/lib.linux-x86_64-3.7/pystruct/models/unstructured_svm.py build/lib.linux-x86_64-3.7/pystruct/models/graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/setup.py build/lib.linux-x86_64-3.7/pystruct/models/latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/models/multilabel_svm.py build/lib.linux-x86_64-3.7/pystruct/models/node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/__init__.py build/lib.linux-x86_64-3.7/pystruct/models/typed_crf.py build/lib.linux-x86_64-3.7/pystruct/models/grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/base.py build/lib.linux-x86_64-3.7/pystruct/models/chain_crf.py build/lib.linux-x86_64-3.7/pystruct/models/edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/utils/inference.py build/lib.linux-x86_64-3.7/pystruct/utils/logging.py build/lib.linux-x86_64-3.7/pystruct/utils/plotting.py build/lib.linux-x86_64-3.7/pystruct/utils/graph_functions.py build/lib.linux-x86_64-3.7/pystruct/utils/__init__.py build/lib.linux-x86_64-3.7/pystruct/utils/graph.py build/lib.linux-x86_64-3.7/pystruct/datasets/dataset_loaders.py build/lib.linux-x86_64-3.7/pystruct/datasets/synthetic_grids.py build/lib.linux-x86_64-3.7/pystruct/datasets/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_datasets.py build/lib.linux-x86_64-3.7/pystruct/tests/test_libraries.py build/lib.linux-x86_64-3.7/pystruct/tests/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_primal_dual.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_edge_feature_graph_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_binary_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_frankwolfe_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_node_crf_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_crammer_singer_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_graph_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_chain_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_multilabel_problem.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_directional_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_maxprod.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_exact_inference.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_logging.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_inference.py
      Skipping optional fixer: buffer
      Skipping optional fixer: idioms
      Skipping optional fixer: set_literal
      Skipping optional fixer: ws_comma
      running build_ext
      building 'pystruct.models.utils' extension
      creating build/temp.linux-x86_64-3.7
      creating build/temp.linux-x86_64-3.7/src
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/databricks/python3/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -I/databricks/python3/include/python3.7m -c src/utils.c -o build/temp.linux-x86_64-3.7/src/utils.o
      src/utils.c: In function ‘__pyx_pf_5utils_32loss_augment_unaries’:
      src/utils.c:5552:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             __pyx_t_6 = ((__pyx_v_s == (*((unsigned int *) ( /* dim=0 */ (__pyx_v_y.data + __pyx_t_5 * __pyx_v_y.strides[0]) )))) != 0);
                                     ^~
      src/utils.c: In function ‘__Pyx_ExceptionSave’:
      src/utils.c:17843:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
           *type = tstate->exc_type;
                           ^~~~~~~~
                           curexc_type
      src/utils.c:17844:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
           *value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
      src/utils.c:17845:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
           *tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
      src/utils.c: In function ‘__Pyx_ExceptionReset’:
      src/utils.c:17857:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
           tmp_type = tstate->exc_type;
                              ^~~~~~~~
                              curexc_type
      src/utils.c:17858:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
           tmp_value = tstate->exc_value;
                               ^~~~~~~~~
                               curexc_value
      src/utils.c:17859:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
           tmp_tb = tstate->exc_traceback;
                            ^~~~~~~~~~~~~
                            curexc_traceback
      src/utils.c:17860:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
           tstate->exc_type = type;
                   ^~~~~~~~
                   curexc_type
      src/utils.c:17861:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
           tstate->exc_value = value;
                   ^~~~~~~~~
                   curexc_value
      src/utils.c:17862:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
           tstate->exc_traceback = tb;
                   ^~~~~~~~~~~~~
                   curexc_traceback
      src/utils.c: In function ‘__Pyx_GetException’:
      src/utils.c:17905:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
           tmp_type = tstate->exc_type;
                              ^~~~~~~~
                              curexc_type
      src/utils.c:17906:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
           tmp_value = tstate->exc_value;
                               ^~~~~~~~~
                               curexc_value
      src/utils.c:17907:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
           tmp_tb = tstate->exc_traceback;
                            ^~~~~~~~~~~~~
                            curexc_traceback
      src/utils.c:17908:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
           tstate->exc_type = local_type;
                   ^~~~~~~~
                   curexc_type
      src/utils.c:17909:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
           tstate->exc_value = local_value;
                   ^~~~~~~~~
                   curexc_value
      src/utils.c:17910:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
           tstate->exc_traceback = local_tb;
                   ^~~~~~~~~~~~~
                   curexc_traceback
      src/utils.c: In function ‘__Pyx_ExceptionSwap’:
      src/utils.c:19369:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
           tmp_type = tstate->exc_type;
                              ^~~~~~~~
                              curexc_type
      src/utils.c:19370:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
           tmp_value = tstate->exc_value;
                               ^~~~~~~~~
                               curexc_value
      src/utils.c:19371:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
           tmp_tb = tstate->exc_traceback;
                            ^~~~~~~~~~~~~
                            curexc_traceback
      src/utils.c:19372:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
           tstate->exc_type = *type;
                   ^~~~~~~~
                   curexc_type
      src/utils.c:19373:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
           tstate->exc_value = *value;
                   ^~~~~~~~~
                   curexc_value
      src/utils.c:19374:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
           tstate->exc_traceback = *tb;
                   ^~~~~~~~~~~~~
                   curexc_traceback
      error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
      ----------------------------------------
      ERROR: Failed building wheel for pystruct
        ERROR: Command errored out with exit status 1:
         command: /databricks/python3/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e9eawint/pystruct/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e9eawint/pystruct/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-kwpr67y3/install-record.txt --single-version-externally-managed --compile --install-headers /databricks/python3/include/site/python3.7/pystruct
             cwd: /tmp/pip-install-e9eawint/pystruct/
        Complete output (220 lines):
        running install
        running build
        running build_py
        creating build
        creating build/lib.linux-x86_64-3.7
        creating build/lib.linux-x86_64-3.7/pystruct
        copying pystruct/plot_learning.py -> build/lib.linux-x86_64-3.7/pystruct
        copying pystruct/__init__.py -> build/lib.linux-x86_64-3.7/pystruct
        creating build/lib.linux-x86_64-3.7/pystruct/learners
        copying pystruct/learners/subgradient_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
        copying pystruct/learners/structured_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/learners
        copying pystruct/learners/one_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
        copying pystruct/learners/frankwolfe_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
        copying pystruct/learners/downhill_simplex_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
        copying pystruct/learners/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/learners
        copying pystruct/learners/latent_structured_svm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
        copying pystruct/learners/svm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
        copying pystruct/learners/n_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
        copying pystruct/learners/ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
        copying pystruct/learners/subgradient_latent_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners
        creating build/lib.linux-x86_64-3.7/pystruct/inference
        copying pystruct/inference/linear_programming.py -> build/lib.linux-x86_64-3.7/pystruct/inference
        copying pystruct/inference/common.py -> build/lib.linux-x86_64-3.7/pystruct/inference
        copying pystruct/inference/inference_methods.py -> build/lib.linux-x86_64-3.7/pystruct/inference
        copying pystruct/inference/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/inference
        copying pystruct/inference/maxprod.py -> build/lib.linux-x86_64-3.7/pystruct/inference
        creating build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/unstructured_svm.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/latent_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/setup.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/latent_node_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/multilabel_svm.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/node_type_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/typed_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/latent_grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/base.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/chain_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
        copying pystruct/models/edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models
        creating build/lib.linux-x86_64-3.7/pystruct/utils
        copying pystruct/utils/inference.py -> build/lib.linux-x86_64-3.7/pystruct/utils
        copying pystruct/utils/logging.py -> build/lib.linux-x86_64-3.7/pystruct/utils
        copying pystruct/utils/plotting.py -> build/lib.linux-x86_64-3.7/pystruct/utils
        copying pystruct/utils/graph_functions.py -> build/lib.linux-x86_64-3.7/pystruct/utils
        copying pystruct/utils/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/utils
        copying pystruct/utils/graph.py -> build/lib.linux-x86_64-3.7/pystruct/utils
        creating build/lib.linux-x86_64-3.7/pystruct/datasets
        copying pystruct/datasets/dataset_loaders.py -> build/lib.linux-x86_64-3.7/pystruct/datasets
        copying pystruct/datasets/synthetic_grids.py -> build/lib.linux-x86_64-3.7/pystruct/datasets
        copying pystruct/datasets/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/datasets
        creating build/lib.linux-x86_64-3.7/pystruct/tests
        copying pystruct/tests/test_datasets.py -> build/lib.linux-x86_64-3.7/pystruct/tests
        copying pystruct/tests/test_libraries.py -> build/lib.linux-x86_64-3.7/pystruct/tests
        copying pystruct/tests/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/tests
        creating build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_primal_dual.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_edge_feature_graph_learning.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_n_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_binary_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_latent_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_frankwolfe_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_subgradient_latent_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_latent_node_crf_learning.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_structured_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_crammer_singer_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_subgradient_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_one_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        copying pystruct/tests/test_learners/test_graph_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners
        creating build/lib.linux-x86_64-3.7/pystruct/tests/test_models
        copying pystruct/tests/test_models/test_grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
        copying pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
        copying pystruct/tests/test_models/test_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
        copying pystruct/tests/test_models/test_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
        copying pystruct/tests/test_models/test_chain_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
        copying pystruct/tests/test_models/test_latent_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
        copying pystruct/tests/test_models/test_multilabel_problem.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
        copying pystruct/tests/test_models/test_directional_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
        copying pystruct/tests/test_models/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
        copying pystruct/tests/test_models/test_latent_node_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models
        creating build/lib.linux-x86_64-3.7/pystruct/tests/test_inference
        copying pystruct/tests/test_inference/test_maxprod.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference
        copying pystruct/tests/test_inference/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference
        copying pystruct/tests/test_inference/test_exact_inference.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference
        creating build/lib.linux-x86_64-3.7/pystruct/tests/test_utils
        copying pystruct/tests/test_utils/test_utils_logging.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils
        copying pystruct/tests/test_utils/__init__.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils
        copying pystruct/tests/test_utils/test_utils_inference.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils
        running egg_info
        writing pystruct.egg-info/PKG-INFO
        writing dependency_links to pystruct.egg-info/dependency_links.txt
        writing requirements to pystruct.egg-info/requires.txt
        writing top-level names to pystruct.egg-info/top_level.txt
        reading manifest file 'pystruct.egg-info/SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        warning: no files found matching '*' under directory 'tests'
        warning: no previously-included files matching '*.pyc' found under directory 'doc'
        warning: no previously-included files matching '*.pyo' found under directory 'doc'
        warning: no previously-included files matching '*.pyc' found under directory 'tests'
        warning: no previously-included files matching '*.pyo' found under directory 'tests'
        no previously-included directories found matching 'docs/_build'
        no previously-included directories found matching 'docs/auto_examples'
        no previously-included directories found matching 'docs/generated'
        writing manifest file 'pystruct.egg-info/SOURCES.txt'
        copying pystruct/inference/_viterbi.c -> build/lib.linux-x86_64-3.7/pystruct/inference
        copying pystruct/datasets/letters.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets
        copying pystruct/datasets/scene.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets
        copying pystruct/datasets/snakes.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets
        Fixing build/lib.linux-x86_64-3.7/pystruct/plot_learning.py build/lib.linux-x86_64-3.7/pystruct/__init__.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/learners/one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/frankwolfe_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/downhill_simplex_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/__init__.py build/lib.linux-x86_64-3.7/pystruct/learners/latent_structured_svm.py build/lib.linux-x86_64-3.7/pystruct/learners/svm.py build/lib.linux-x86_64-3.7/pystruct/learners/n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_latent_ssvm.py build/lib.linux-x86_64-3.7/pystruct/inference/linear_programming.py build/lib.linux-x86_64-3.7/pystruct/inference/common.py build/lib.linux-x86_64-3.7/pystruct/inference/inference_methods.py build/lib.linux-x86_64-3.7/pystruct/inference/__init__.py build/lib.linux-x86_64-3.7/pystruct/inference/maxprod.py build/lib.linux-x86_64-3.7/pystruct/models/unstructured_svm.py build/lib.linux-x86_64-3.7/pystruct/models/graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/setup.py build/lib.linux-x86_64-3.7/pystruct/models/latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/models/multilabel_svm.py build/lib.linux-x86_64-3.7/pystruct/models/node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/__init__.py build/lib.linux-x86_64-3.7/pystruct/models/typed_crf.py build/lib.linux-x86_64-3.7/pystruct/models/grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/base.py build/lib.linux-x86_64-3.7/pystruct/models/chain_crf.py build/lib.linux-x86_64-3.7/pystruct/models/edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/utils/inference.py build/lib.linux-x86_64-3.7/pystruct/utils/logging.py build/lib.linux-x86_64-3.7/pystruct/utils/plotting.py build/lib.linux-x86_64-3.7/pystruct/utils/graph_functions.py build/lib.linux-x86_64-3.7/pystruct/utils/__init__.py build/lib.linux-x86_64-3.7/pystruct/utils/graph.py build/lib.linux-x86_64-3.7/pystruct/datasets/dataset_loaders.py build/lib.linux-x86_64-3.7/pystruct/datasets/synthetic_grids.py build/lib.linux-x86_64-3.7/pystruct/datasets/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_datasets.py build/lib.linux-x86_64-3.7/pystruct/tests/test_libraries.py build/lib.linux-x86_64-3.7/pystruct/tests/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_primal_dual.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_edge_feature_graph_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_binary_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_frankwolfe_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_node_crf_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_crammer_singer_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_graph_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_chain_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_multilabel_problem.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_directional_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_maxprod.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_exact_inference.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_logging.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_inference.py
        Skipping optional fixer: buffer
        Skipping optional fixer: idioms
        Skipping optional fixer: set_literal
        Skipping optional fixer: ws_comma
        Fixing build/lib.linux-x86_64-3.7/pystruct/plot_learning.py build/lib.linux-x86_64-3.7/pystruct/__init__.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/learners/one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/frankwolfe_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/downhill_simplex_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/__init__.py build/lib.linux-x86_64-3.7/pystruct/learners/latent_structured_svm.py build/lib.linux-x86_64-3.7/pystruct/learners/svm.py build/lib.linux-x86_64-3.7/pystruct/learners/n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_latent_ssvm.py build/lib.linux-x86_64-3.7/pystruct/inference/linear_programming.py build/lib.linux-x86_64-3.7/pystruct/inference/common.py build/lib.linux-x86_64-3.7/pystruct/inference/inference_methods.py build/lib.linux-x86_64-3.7/pystruct/inference/__init__.py build/lib.linux-x86_64-3.7/pystruct/inference/maxprod.py build/lib.linux-x86_64-3.7/pystruct/models/unstructured_svm.py build/lib.linux-x86_64-3.7/pystruct/models/graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/setup.py build/lib.linux-x86_64-3.7/pystruct/models/latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/models/multilabel_svm.py build/lib.linux-x86_64-3.7/pystruct/models/node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/__init__.py build/lib.linux-x86_64-3.7/pystruct/models/typed_crf.py build/lib.linux-x86_64-3.7/pystruct/models/grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/base.py build/lib.linux-x86_64-3.7/pystruct/models/chain_crf.py build/lib.linux-x86_64-3.7/pystruct/models/edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/utils/inference.py build/lib.linux-x86_64-3.7/pystruct/utils/logging.py build/lib.linux-x86_64-3.7/pystruct/utils/plotting.py build/lib.linux-x86_64-3.7/pystruct/utils/graph_functions.py build/lib.linux-x86_64-3.7/pystruct/utils/__init__.py build/lib.linux-x86_64-3.7/pystruct/utils/graph.py build/lib.linux-x86_64-3.7/pystruct/datasets/dataset_loaders.py build/lib.linux-x86_64-3.7/pystruct/datasets/synthetic_grids.py build/lib.linux-x86_64-3.7/pystruct/datasets/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_datasets.py build/lib.linux-x86_64-3.7/pystruct/tests/test_libraries.py build/lib.linux-x86_64-3.7/pystruct/tests/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_primal_dual.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_edge_feature_graph_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_binary_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_frankwolfe_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_node_crf_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_crammer_singer_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_graph_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_chain_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_multilabel_problem.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_directional_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_maxprod.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_exact_inference.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_logging.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/__init__.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_inference.py
        Skipping optional fixer: buffer
        Skipping optional fixer: idioms
        Skipping optional fixer: set_literal
        Skipping optional fixer: ws_comma
        running build_ext
        building 'pystruct.models.utils' extension
        creating build/temp.linux-x86_64-3.7
        creating build/temp.linux-x86_64-3.7/src
        x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/databricks/python3/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -I/databricks/python3/include/python3.7m -c src/utils.c -o build/temp.linux-x86_64-3.7/src/utils.o
        src/utils.c: In function ‘__pyx_pf_5utils_32loss_augment_unaries’:
        src/utils.c:5552:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
               __pyx_t_6 = ((__pyx_v_s == (*((unsigned int *) ( /* dim=0 */ (__pyx_v_y.data + __pyx_t_5 * __pyx_v_y.strides[0]) )))) != 0);
                                       ^~
        src/utils.c: In function ‘__Pyx_ExceptionSave’:
        src/utils.c:17843:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
             *type = tstate->exc_type;
                             ^~~~~~~~
                             curexc_type
        src/utils.c:17844:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
             *value = tstate->exc_value;
                              ^~~~~~~~~
                              curexc_value
        src/utils.c:17845:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
             *tb = tstate->exc_traceback;
                           ^~~~~~~~~~~~~
                           curexc_traceback
        src/utils.c: In function ‘__Pyx_ExceptionReset’:
        src/utils.c:17857:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
             tmp_type = tstate->exc_type;
                                ^~~~~~~~
                                curexc_type
        src/utils.c:17858:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
             tmp_value = tstate->exc_value;
                                 ^~~~~~~~~
                                 curexc_value
        src/utils.c:17859:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
             tmp_tb = tstate->exc_traceback;
                              ^~~~~~~~~~~~~
                              curexc_traceback
        src/utils.c:17860:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
             tstate->exc_type = type;
                     ^~~~~~~~
                     curexc_type
        src/utils.c:17861:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
             tstate->exc_value = value;
                     ^~~~~~~~~
                     curexc_value
        src/utils.c:17862:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
             tstate->exc_traceback = tb;
                     ^~~~~~~~~~~~~
                     curexc_traceback
        src/utils.c: In function ‘__Pyx_GetException’:
        src/utils.c:17905:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
             tmp_type = tstate->exc_type;
                                ^~~~~~~~
                                curexc_type
        src/utils.c:17906:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
             tmp_value = tstate->exc_value;
                                 ^~~~~~~~~
                                 curexc_value
        src/utils.c:17907:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
             tmp_tb = tstate->exc_traceback;
                              ^~~~~~~~~~~~~
                              curexc_traceback
        src/utils.c:17908:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
             tstate->exc_type = local_type;
                     ^~~~~~~~
                     curexc_type
        src/utils.c:17909:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
             tstate->exc_value = local_value;
                     ^~~~~~~~~
                     curexc_value
        src/utils.c:17910:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
             tstate->exc_traceback = local_tb;
                     ^~~~~~~~~~~~~
                     curexc_traceback
        src/utils.c: In function ‘__Pyx_ExceptionSwap’:
        src/utils.c:19369:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
             tmp_type = tstate->exc_type;
                                ^~~~~~~~
                                curexc_type
        src/utils.c:19370:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
             tmp_value = tstate->exc_value;
                                 ^~~~~~~~~
                                 curexc_value
        src/utils.c:19371:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
             tmp_tb = tstate->exc_traceback;
                              ^~~~~~~~~~~~~
                              curexc_traceback
        src/utils.c:19372:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
             tstate->exc_type = *type;
                     ^~~~~~~~
                     curexc_type
        src/utils.c:19373:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
             tstate->exc_value = *value;
                     ^~~~~~~~~
                     curexc_value
        src/utils.c:19374:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
             tstate->exc_traceback = *tb;
                     ^~~~~~~~~~~~~
                     curexc_traceback
        error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
        ----------------------------------------
    ERROR: Command errored out with exit status 1: /databricks/python3/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e9eawint/pystruct/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e9eawint/pystruct/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-kwpr67y3/install-record.txt --single-version-externally-managed --compile --install-headers /databricks/python3/include/site/python3.7/pystruct Check the logs for full command output.
     for library:PythonPyPiPkgId(pystruct,None,None,List()),isSharedLibrary=false
    
    opened by ingrid88 0
  •  error on installing on Linux

    error on installing on Linux

    Hi,

    Having error on installing on Linux, spyder, python3.4, can you kindly guide how to fix it.

    Using cached https://files.pythonhosted.org/packages/65/42/763411d5025534699b84f596df89f79b3f044b362bf299e3f649900710f2/pystruct-0.3.2.tar.gz Requirement already satisfied: ad3 in ./.local/lib/python3.7/site-packages (from pystruct) (2.2.1) Requirement already satisfied: numpy in ./.local/lib/python3.7/site-packages (from pystruct) (1.16.2) Building wheels for collected packages: pystruct Building wheel for pystruct (setup.py) ... [?25lerror ERROR: Complete output from command /home/hadoop/anaconda3/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-731u77ff/pystruct/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-aszd87xl --python-tag cp37: ERROR: running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/pystruct copying pystruct/init.py -> build/lib.linux-x86_64-3.7/pystruct copying pystruct/plot_learning.py -> build/lib.linux-x86_64-3.7/pystruct creating build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/subgradient_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/structured_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/n_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/init.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/subgradient_latent_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/downhill_simplex_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/frankwolfe_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/svm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/one_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/latent_structured_svm.py -> build/lib.linux-x86_64-3.7/pystruct/learners creating build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/inference/init.py -> build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/inference/inference_methods.py -> build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/inference/common.py -> build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/inference/linear_programming.py -> build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/inference/maxprod.py -> build/lib.linux-x86_64-3.7/pystruct/inference creating build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/chain_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/node_type_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/unstructured_svm.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/latent_node_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/multilabel_svm.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/init.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/latent_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/latent_grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/setup.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/base.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/typed_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models creating build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/graph_functions.py -> build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/inference.py -> build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/graph.py -> build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/init.py -> build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/logging.py -> build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/plotting.py -> build/lib.linux-x86_64-3.7/pystruct/utils creating build/lib.linux-x86_64-3.7/pystruct/datasets copying pystruct/datasets/init.py -> build/lib.linux-x86_64-3.7/pystruct/datasets copying pystruct/datasets/synthetic_grids.py -> build/lib.linux-x86_64-3.7/pystruct/datasets copying pystruct/datasets/dataset_loaders.py -> build/lib.linux-x86_64-3.7/pystruct/datasets creating build/lib.linux-x86_64-3.7/pystruct/tests copying pystruct/tests/test_datasets.py -> build/lib.linux-x86_64-3.7/pystruct/tests copying pystruct/tests/init.py -> build/lib.linux-x86_64-3.7/pystruct/tests copying pystruct/tests/test_libraries.py -> build/lib.linux-x86_64-3.7/pystruct/tests creating build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_structured_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_one_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/init.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_edge_feature_graph_learning.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_subgradient_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_primal_dual.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_crammer_singer_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_latent_node_crf_learning.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_latent_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_graph_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_subgradient_latent_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_binary_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_n_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_frankwolfe_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners creating build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/init.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_latent_node_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_latent_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_chain_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_directional_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_multilabel_problem.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models creating build/lib.linux-x86_64-3.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/init.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/test_maxprod.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/test_exact_inference.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference creating build/lib.linux-x86_64-3.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/test_utils_logging.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/init.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/test_utils_inference.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils running egg_info writing pystruct.egg-info/PKG-INFO writing dependency_links to pystruct.egg-info/dependency_links.txt writing requirements to pystruct.egg-info/requires.txt writing top-level names to pystruct.egg-info/top_level.txt reading manifest file 'pystruct.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '' under directory 'tests' warning: no previously-included files matching '.pyc' found under directory 'doc' warning: no previously-included files matching '.pyo' found under directory 'doc' warning: no previously-included files matching '.pyc' found under directory 'tests' warning: no previously-included files matching '.pyo' found under directory 'tests' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'docs/auto_examples' no previously-included directories found matching 'docs/generated' writing manifest file 'pystruct.egg-info/SOURCES.txt' copying pystruct/inference/_viterbi.c -> build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/datasets/letters.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets copying pystruct/datasets/scene.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets copying pystruct/datasets/snakes.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets Fixing build/lib.linux-x86_64-3.7/pystruct/init.py build/lib.linux-x86_64-3.7/pystruct/plot_learning.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/learners/n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/init.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_latent_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/downhill_simplex_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/frankwolfe_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/svm.py build/lib.linux-x86_64-3.7/pystruct/learners/one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/latent_structured_svm.py build/lib.linux-x86_64-3.7/pystruct/inference/init.py build/lib.linux-x86_64-3.7/pystruct/inference/inference_methods.py build/lib.linux-x86_64-3.7/pystruct/inference/common.py build/lib.linux-x86_64-3.7/pystruct/inference/linear_programming.py build/lib.linux-x86_64-3.7/pystruct/inference/maxprod.py build/lib.linux-x86_64-3.7/pystruct/models/grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/chain_crf.py build/lib.linux-x86_64-3.7/pystruct/models/node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/unstructured_svm.py build/lib.linux-x86_64-3.7/pystruct/models/edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/models/multilabel_svm.py build/lib.linux-x86_64-3.7/pystruct/models/init.py build/lib.linux-x86_64-3.7/pystruct/models/graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/setup.py build/lib.linux-x86_64-3.7/pystruct/models/base.py build/lib.linux-x86_64-3.7/pystruct/models/typed_crf.py build/lib.linux-x86_64-3.7/pystruct/utils/graph_functions.py build/lib.linux-x86_64-3.7/pystruct/utils/inference.py build/lib.linux-x86_64-3.7/pystruct/utils/graph.py build/lib.linux-x86_64-3.7/pystruct/utils/init.py build/lib.linux-x86_64-3.7/pystruct/utils/logging.py build/lib.linux-x86_64-3.7/pystruct/utils/plotting.py build/lib.linux-x86_64-3.7/pystruct/datasets/init.py build/lib.linux-x86_64-3.7/pystruct/datasets/synthetic_grids.py build/lib.linux-x86_64-3.7/pystruct/datasets/dataset_loaders.py build/lib.linux-x86_64-3.7/pystruct/tests/test_datasets.py build/lib.linux-x86_64-3.7/pystruct/tests/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_libraries.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_edge_feature_graph_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_primal_dual.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_crammer_singer_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_node_crf_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_graph_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_binary_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_frankwolfe_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_chain_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_directional_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_multilabel_problem.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_maxprod.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_exact_inference.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_logging.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_inference.py Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma Fixing build/lib.linux-x86_64-3.7/pystruct/init.py build/lib.linux-x86_64-3.7/pystruct/plot_learning.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/learners/n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/init.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_latent_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/downhill_simplex_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/frankwolfe_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/svm.py build/lib.linux-x86_64-3.7/pystruct/learners/one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/latent_structured_svm.py build/lib.linux-x86_64-3.7/pystruct/inference/init.py build/lib.linux-x86_64-3.7/pystruct/inference/inference_methods.py build/lib.linux-x86_64-3.7/pystruct/inference/common.py build/lib.linux-x86_64-3.7/pystruct/inference/linear_programming.py build/lib.linux-x86_64-3.7/pystruct/inference/maxprod.py build/lib.linux-x86_64-3.7/pystruct/models/grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/chain_crf.py build/lib.linux-x86_64-3.7/pystruct/models/node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/unstructured_svm.py build/lib.linux-x86_64-3.7/pystruct/models/edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/models/multilabel_svm.py build/lib.linux-x86_64-3.7/pystruct/models/init.py build/lib.linux-x86_64-3.7/pystruct/models/graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/setup.py build/lib.linux-x86_64-3.7/pystruct/models/base.py build/lib.linux-x86_64-3.7/pystruct/models/typed_crf.py build/lib.linux-x86_64-3.7/pystruct/utils/graph_functions.py build/lib.linux-x86_64-3.7/pystruct/utils/inference.py build/lib.linux-x86_64-3.7/pystruct/utils/graph.py build/lib.linux-x86_64-3.7/pystruct/utils/init.py build/lib.linux-x86_64-3.7/pystruct/utils/logging.py build/lib.linux-x86_64-3.7/pystruct/utils/plotting.py build/lib.linux-x86_64-3.7/pystruct/datasets/init.py build/lib.linux-x86_64-3.7/pystruct/datasets/synthetic_grids.py build/lib.linux-x86_64-3.7/pystruct/datasets/dataset_loaders.py build/lib.linux-x86_64-3.7/pystruct/tests/test_datasets.py build/lib.linux-x86_64-3.7/pystruct/tests/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_libraries.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_edge_feature_graph_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_primal_dual.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_crammer_singer_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_node_crf_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_graph_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_binary_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_frankwolfe_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_chain_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_directional_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_multilabel_problem.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_maxprod.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_exact_inference.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_logging.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_inference.py Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma running build_ext building 'pystruct.models.utils' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/src gcc -pthread -B /home/hadoop/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/hadoop/.local/lib/python3.7/site-packages/numpy/core/include -I/home/hadoop/anaconda3/include/python3.7m -c src/utils.c -o build/temp.linux-x86_64-3.7/src/utils.o src/utils.c: In function ‘__pyx_pf_5utils_32loss_augment_unaries’: src/utils.c:5552:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] __pyx_t_6 = ((__pyx_v_s == (((unsigned int ) ( / dim=0 */ (__pyx_v_y.data + __pyx_t_5 * __pyx_v_y.strides[0]) )))) != 0); ^~ src/utils.c: In function ‘__Pyx_ExceptionSave’: src/utils.c:17843:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? *type = tstate->exc_type; ^~~~~~~~ curexc_type src/utils.c:17844:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? *value = tstate->exc_value; ^~~~~~~~~ curexc_value src/utils.c:17845:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? *tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback src/utils.c: In function ‘__Pyx_ExceptionReset’: src/utils.c:17857:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~~~~~ curexc_type src/utils.c:17858:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value src/utils.c:17859:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback src/utils.c:17860:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~~~~~ curexc_type src/utils.c:17861:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~~~~~ curexc_value src/utils.c:17862:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = tb; ^~~~~~~~~~~~~ curexc_traceback src/utils.c: In function ‘__Pyx_GetException’: src/utils.c:17905:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~~~~~ curexc_type src/utils.c:17906:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value src/utils.c:17907:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback src/utils.c:17908:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = local_type; ^~~~~~~~ curexc_type src/utils.c:17909:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = local_value; ^~~~~~~~~ curexc_value src/utils.c:17910:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = local_tb; ^~~~~~~~~~~~~ curexc_traceback src/utils.c: In function ‘__Pyx_ExceptionSwap’: src/utils.c:19369:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~~~~~ curexc_type src/utils.c:19370:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value src/utils.c:19371:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback src/utils.c:19372:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = *type; ^~~~~~~~ curexc_type src/utils.c:19373:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = *value; ^~~~~~~~~ curexc_value src/utils.c:19374:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = *tb; ^~~~~~~~~~~~~ curexc_traceback error: command 'gcc' failed with exit status 1

    ERROR: Failed building wheel for pystruct nning setup.py clean for pystruct Failed to build pystruct Installing collected packages: pystruct Running setup.py install for pystruct ... [?25lerror ERROR: Complete output from command /home/hadoop/anaconda3/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-731u77ff/pystruct/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-07xf1jq1/install-record.txt --single-version-externally-managed --compile: ERROR: running install running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/pystruct copying pystruct/init.py -> build/lib.linux-x86_64-3.7/pystruct copying pystruct/plot_learning.py -> build/lib.linux-x86_64-3.7/pystruct creating build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/subgradient_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/structured_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/n_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/init.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/subgradient_latent_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/downhill_simplex_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/frankwolfe_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/svm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/one_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/learners copying pystruct/learners/latent_structured_svm.py -> build/lib.linux-x86_64-3.7/pystruct/learners creating build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/inference/init.py -> build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/inference/inference_methods.py -> build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/inference/common.py -> build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/inference/linear_programming.py -> build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/inference/maxprod.py -> build/lib.linux-x86_64-3.7/pystruct/inference creating build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/chain_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/node_type_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/unstructured_svm.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/latent_node_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/multilabel_svm.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/init.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/latent_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/latent_grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/setup.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/base.py -> build/lib.linux-x86_64-3.7/pystruct/models copying pystruct/models/typed_crf.py -> build/lib.linux-x86_64-3.7/pystruct/models creating build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/graph_functions.py -> build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/inference.py -> build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/graph.py -> build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/init.py -> build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/logging.py -> build/lib.linux-x86_64-3.7/pystruct/utils copying pystruct/utils/plotting.py -> build/lib.linux-x86_64-3.7/pystruct/utils creating build/lib.linux-x86_64-3.7/pystruct/datasets copying pystruct/datasets/init.py -> build/lib.linux-x86_64-3.7/pystruct/datasets copying pystruct/datasets/synthetic_grids.py -> build/lib.linux-x86_64-3.7/pystruct/datasets copying pystruct/datasets/dataset_loaders.py -> build/lib.linux-x86_64-3.7/pystruct/datasets creating build/lib.linux-x86_64-3.7/pystruct/tests copying pystruct/tests/test_datasets.py -> build/lib.linux-x86_64-3.7/pystruct/tests copying pystruct/tests/init.py -> build/lib.linux-x86_64-3.7/pystruct/tests copying pystruct/tests/test_libraries.py -> build/lib.linux-x86_64-3.7/pystruct/tests creating build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_structured_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_one_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/init.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_edge_feature_graph_learning.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_subgradient_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_primal_dual.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_crammer_singer_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_latent_node_crf_learning.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_latent_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_graph_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_subgradient_latent_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_perceptron.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_binary_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_n_slack_ssvm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_frankwolfe_svm.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_learners creating build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_grid_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/init.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_latent_node_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_latent_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_chain_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_directional_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_multilabel_problem.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_models creating build/lib.linux-x86_64-3.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/init.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/test_maxprod.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/test_exact_inference.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_inference creating build/lib.linux-x86_64-3.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/test_utils_logging.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/init.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/test_utils_inference.py -> build/lib.linux-x86_64-3.7/pystruct/tests/test_utils running egg_info writing pystruct.egg-info/PKG-INFO writing dependency_links to pystruct.egg-info/dependency_links.txt writing requirements to pystruct.egg-info/requires.txt writing top-level names to pystruct.egg-info/top_level.txt reading manifest file 'pystruct.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '' under directory 'tests' warning: no previously-included files matching '.pyc' found under directory 'doc' warning: no previously-included files matching '.pyo' found under directory 'doc' warning: no previously-included files matching '.pyc' found under directory 'tests' warning: no previously-included files matching '.pyo' found under directory 'tests' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'docs/auto_examples' no previously-included directories found matching 'docs/generated' writing manifest file 'pystruct.egg-info/SOURCES.txt' copying pystruct/inference/_viterbi.c -> build/lib.linux-x86_64-3.7/pystruct/inference copying pystruct/datasets/letters.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets copying pystruct/datasets/scene.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets copying pystruct/datasets/snakes.pickle -> build/lib.linux-x86_64-3.7/pystruct/datasets Fixing build/lib.linux-x86_64-3.7/pystruct/init.py build/lib.linux-x86_64-3.7/pystruct/plot_learning.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/learners/n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/init.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_latent_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/downhill_simplex_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/frankwolfe_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/svm.py build/lib.linux-x86_64-3.7/pystruct/learners/one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/latent_structured_svm.py build/lib.linux-x86_64-3.7/pystruct/inference/init.py build/lib.linux-x86_64-3.7/pystruct/inference/inference_methods.py build/lib.linux-x86_64-3.7/pystruct/inference/common.py build/lib.linux-x86_64-3.7/pystruct/inference/linear_programming.py build/lib.linux-x86_64-3.7/pystruct/inference/maxprod.py build/lib.linux-x86_64-3.7/pystruct/models/grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/chain_crf.py build/lib.linux-x86_64-3.7/pystruct/models/node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/unstructured_svm.py build/lib.linux-x86_64-3.7/pystruct/models/edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/models/multilabel_svm.py build/lib.linux-x86_64-3.7/pystruct/models/init.py build/lib.linux-x86_64-3.7/pystruct/models/graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/setup.py build/lib.linux-x86_64-3.7/pystruct/models/base.py build/lib.linux-x86_64-3.7/pystruct/models/typed_crf.py build/lib.linux-x86_64-3.7/pystruct/utils/graph_functions.py build/lib.linux-x86_64-3.7/pystruct/utils/inference.py build/lib.linux-x86_64-3.7/pystruct/utils/graph.py build/lib.linux-x86_64-3.7/pystruct/utils/init.py build/lib.linux-x86_64-3.7/pystruct/utils/logging.py build/lib.linux-x86_64-3.7/pystruct/utils/plotting.py build/lib.linux-x86_64-3.7/pystruct/datasets/init.py build/lib.linux-x86_64-3.7/pystruct/datasets/synthetic_grids.py build/lib.linux-x86_64-3.7/pystruct/datasets/dataset_loaders.py build/lib.linux-x86_64-3.7/pystruct/tests/test_datasets.py build/lib.linux-x86_64-3.7/pystruct/tests/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_libraries.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_edge_feature_graph_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_primal_dual.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_crammer_singer_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_node_crf_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_graph_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_binary_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_frankwolfe_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_chain_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_directional_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_multilabel_problem.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_maxprod.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_exact_inference.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_logging.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_inference.py Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma Fixing build/lib.linux-x86_64-3.7/pystruct/init.py build/lib.linux-x86_64-3.7/pystruct/plot_learning.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/learners/n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/init.py build/lib.linux-x86_64-3.7/pystruct/learners/subgradient_latent_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/downhill_simplex_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/frankwolfe_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/svm.py build/lib.linux-x86_64-3.7/pystruct/learners/one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/learners/latent_structured_svm.py build/lib.linux-x86_64-3.7/pystruct/inference/init.py build/lib.linux-x86_64-3.7/pystruct/inference/inference_methods.py build/lib.linux-x86_64-3.7/pystruct/inference/common.py build/lib.linux-x86_64-3.7/pystruct/inference/linear_programming.py build/lib.linux-x86_64-3.7/pystruct/inference/maxprod.py build/lib.linux-x86_64-3.7/pystruct/models/grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/chain_crf.py build/lib.linux-x86_64-3.7/pystruct/models/node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/unstructured_svm.py build/lib.linux-x86_64-3.7/pystruct/models/edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/models/multilabel_svm.py build/lib.linux-x86_64-3.7/pystruct/models/init.py build/lib.linux-x86_64-3.7/pystruct/models/graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/models/crf.py build/lib.linux-x86_64-3.7/pystruct/models/latent_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/models/setup.py build/lib.linux-x86_64-3.7/pystruct/models/base.py build/lib.linux-x86_64-3.7/pystruct/models/typed_crf.py build/lib.linux-x86_64-3.7/pystruct/utils/graph_functions.py build/lib.linux-x86_64-3.7/pystruct/utils/inference.py build/lib.linux-x86_64-3.7/pystruct/utils/graph.py build/lib.linux-x86_64-3.7/pystruct/utils/init.py build/lib.linux-x86_64-3.7/pystruct/utils/logging.py build/lib.linux-x86_64-3.7/pystruct/utils/plotting.py build/lib.linux-x86_64-3.7/pystruct/datasets/init.py build/lib.linux-x86_64-3.7/pystruct/datasets/synthetic_grids.py build/lib.linux-x86_64-3.7/pystruct/datasets/dataset_loaders.py build/lib.linux-x86_64-3.7/pystruct/tests/test_datasets.py build/lib.linux-x86_64-3.7/pystruct/tests/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_libraries.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_structured_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_one_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_edge_feature_graph_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_primal_dual.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_crammer_singer_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_node_crf_learning.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_graph_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_subgradient_latent_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_perceptron.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_binary_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_n_slack_ssvm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_learners/test_frankwolfe_svm.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_grid_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_node_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_latent_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_chain_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_directional_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_multilabel_problem.py build/lib.linux-x86_64-3.7/pystruct/tests/test_models/test_node_type_edge_feature_graph_crf.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_maxprod.py build/lib.linux-x86_64-3.7/pystruct/tests/test_inference/test_exact_inference.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_logging.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/init.py build/lib.linux-x86_64-3.7/pystruct/tests/test_utils/test_utils_inference.py Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma running build_ext building 'pystruct.models.utils' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/src gcc -pthread -B /home/hadoop/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/hadoop/.local/lib/python3.7/site-packages/numpy/core/include -I/home/hadoop/anaconda3/include/python3.7m -c src/utils.c -o build/temp.linux-x86_64-3.7/src/utils.o src/utils.c: In function ‘__pyx_pf_5utils_32loss_augment_unaries’: src/utils.c:5552:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] __pyx_t_6 = ((__pyx_v_s == (((unsigned int ) ( / dim=0 */ (__pyx_v_y.data + __pyx_t_5 * __pyx_v_y.strides[0]) )))) != 0); ^~ src/utils.c: In function ‘__Pyx_ExceptionSave’: src/utils.c:17843:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? *type = tstate->exc_type; ^~~~~~~~ curexc_type src/utils.c:17844:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? *value = tstate->exc_value; ^~~~~~~~~ curexc_value src/utils.c:17845:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? *tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback src/utils.c: In function ‘__Pyx_ExceptionReset’: src/utils.c:17857:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~~~~~ curexc_type src/utils.c:17858:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value src/utils.c:17859:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback src/utils.c:17860:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~~~~~ curexc_type src/utils.c:17861:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~~~~~ curexc_value src/utils.c:17862:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = tb; ^~~~~~~~~~~~~ curexc_traceback src/utils.c: In function ‘__Pyx_GetException’: src/utils.c:17905:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~~~~~ curexc_type src/utils.c:17906:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value src/utils.c:17907:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback src/utils.c:17908:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = local_type; ^~~~~~~~ curexc_type src/utils.c:17909:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = local_value; ^~~~~~~~~ curexc_value src/utils.c:17910:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = local_tb; ^~~~~~~~~~~~~ curexc_traceback src/utils.c: In function ‘__Pyx_ExceptionSwap’: src/utils.c:19369:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~~~~~ curexc_type src/utils.c:19370:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value src/utils.c:19371:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback src/utils.c:19372:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = *type; ^~~~~~~~ curexc_type src/utils.c:19373:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = *value; ^~~~~~~~~ curexc_value src/utils.c:19374:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = *tb; ^~~~~~~~~~~~~ curexc_traceback error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command "/home/hadoop/anaconda3/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-731u77ff/pystruct/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-07xf1jq1/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-731u77ff/pystruct/ [?25hNote: you may need to restart the kernel to use updated packages.

    opened by xiongjun926 2
Releases(0.3.1)
K-Means clusternig example with Python and Scikit-learn

Unsupervised-Machine-Learning Flat Clustering K-Means clusternig example with Python and Scikit-learn Flat clustering Clustering algorithms group a se

Emin 1 Dec 13, 2021
Simple linear model implementations from scratch.

Hand Crafted Models Simple linear model implementations from scratch. Table of contents Overview Project Structure Getting started Citing this project

Jonathan Sadighian 2 Sep 13, 2021
MICOM is a Python package for metabolic modeling of microbial communities

Welcome MICOM is a Python package for metabolic modeling of microbial communities currently developed in the Gibbons Lab at the Institute for Systems

57 Dec 21, 2022
Book Recommender System Using Sci-kit learn N-neighbours

Model-Based-Recommender-Engine I created a book Recommender System using Sci-kit learn's N-neighbours algorithm for my model and the streamlit library

1 Jan 13, 2022
A demo project to elaborate how Machine Learn Models are deployed on production using Flask API

This is a salary prediction website developed with the help of machine learning, this makes prediction of salary on basis of few parameters like interview score, experience test score.

1 Feb 10, 2022
Open MLOps - A Production-focused Open-Source Machine Learning Framework

Open MLOps - A Production-focused Open-Source Machine Learning Framework Open MLOps is a set of open-source tools carefully chosen to ease user experi

Data Revenue 590 Dec 28, 2022
A simple python program which predicts the success of a movie based on it's type, actor, actress and director

Movie-Success-Prediction A simple python program which predicts the success of a movie based on it's type, actor, actress and director. The program us

Mahalinga Prasad R N 1 Dec 17, 2021
Random Forest Classification for Neural Subtypes

Random Forest classifier for neural subtypes extracted from extracellular recordings from human brain organoids.

Michael Zabolocki 1 Jan 31, 2022
Examples and code for the Practical Machine Learning workshop series

Practical Machine Learning Workshop Series Practical Machine Learning for Quantitative Finance Post conference workshop at the WBS Spring Conference D

CompatibL 21 Jun 25, 2022
Python-based implementations of algorithms for learning on imbalanced data.

ND DIAL: Imbalanced Algorithms Minimalist Python-based implementations of algorithms for imbalanced learning. Includes deep and representational learn

DIAL | Notre Dame 220 Dec 13, 2022
Tutorials, examples, collections, and everything else that falls into the categories: pattern classification, machine learning, and data mining

**Tutorials, examples, collections, and everything else that falls into the categories: pattern classification, machine learning, and data mining.** S

Sebastian Raschka 4k Dec 30, 2022
Lightning ⚡️ fast forecasting with statistical and econometric models.

Nixtla Statistical ⚡️ Forecast Lightning fast forecasting with statistical and econometric models StatsForecast offers a collection of widely used uni

Nixtla 2.1k Dec 29, 2022
Summer: compartmental disease modelling in Python

Summer: compartmental disease modelling in Python Summer is a Python-based framework for the creation and execution of compartmental (or "state-based"

6 May 13, 2022
This machine learning model was developed for House Prices

This machine learning model was developed for House Prices - Advanced Regression Techniques competition in Kaggle by using several machine learning models such as Random Forest, XGBoost and LightGBM.

serhat_derya 1 Mar 02, 2022
Warren - Stock Price Predictor

Web app to predict closing stock prices in real time using Facebook's Prophet time series algorithm with a multi-variate, single-step time series forecasting strategy.

Kumar Nityan Suman 153 Jan 03, 2023
Accelerating model creation and evaluation.

EmeraldML A machine learning library for streamlining the process of (1) cleaning and splitting data, (2) training, optimizing, and testing various mo

Yusuf 0 Dec 06, 2021
Backprop makes it simple to use, finetune, and deploy state-of-the-art ML models.

Backprop makes it simple to use, finetune, and deploy state-of-the-art ML models. Solve a variety of tasks with pre-trained models or finetune them in

Backprop 227 Dec 10, 2022
Implementation of K-Nearest Neighbors Algorithm Using PySpark

KNN With Spark Implementation of KNN using PySpark. The KNN was used on two separate datasets (https://archive.ics.uci.edu/ml/datasets/iris and https:

Zachary Petroff 4 Dec 30, 2022
Crunchdao - Python API for the Crunchdao machine learning tournament

Python API for the Crunchdao machine learning tournament Interact with the Crunc

3 Jan 19, 2022
Both social media sentiment and stock market data are crucial for stock price prediction

Relating-Social-Media-to-Stock-Movement-Public - We explore the application of Machine Learning for predicting the return of the stock by using the information of stock returns. A trading strategy ba

Vishal Singh Parmar 15 Oct 29, 2022