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)
Time series changepoint detection

changepy Changepoint detection in time series in pure python Install pip install changepy Examples from changepy import pelt from cha

Rui Gil 92 Nov 08, 2022
MIT-Machine Learning with Python–From Linear Models to Deep Learning

MIT-Machine Learning with Python–From Linear Models to Deep Learning | One of the 5 courses in MIT MicroMasters in Statistics & Data Science Welcome t

2 Aug 23, 2022
Bonsai: Gradient Boosted Trees + Bayesian Optimization

Bonsai is a wrapper for the XGBoost and Catboost model training pipelines that leverages Bayesian optimization for computationally efficient hyperparameter tuning.

24 Oct 27, 2022
XAI - An eXplainability toolbox for machine learning

XAI - An eXplainability toolbox for machine learning XAI is a Machine Learning library that is designed with AI explainability in its core. XAI contai

The Institute for Ethical Machine Learning 875 Dec 27, 2022
2021 Machine Learning Security Evasion Competition

2021 Machine Learning Security Evasion Competition This repository contains code samples for the 2021 Machine Learning Security Evasion Competition. P

Fabrício Ceschin 8 May 01, 2022
Learning --> Numpy January 2022 - winter'22

Numerical-Python Numpy NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along

Shahzaneer Ahmed 0 Mar 12, 2022
An easier way to build neural search on the cloud

Jina is geared towards building search systems for any kind of data, including text, images, audio, video and many more. With the modular design & multi-layer abstraction, you can leverage the effici

Jina AI 17k Jan 01, 2023
Machine Learning Algorithms

Machine-Learning-Algorithms In this project, the dataset was created through a survey opened on Google forms. The purpose of the form is to find the p

Göktuğ Ayar 3 Aug 10, 2022
A Python library for detecting patterns and anomalies in massive datasets using the Matrix Profile

matrixprofile-ts matrixprofile-ts is a Python 2 and 3 library for evaluating time series data using the Matrix Profile algorithms developed by the Keo

Target 696 Dec 26, 2022
Kubeflow is a machine learning (ML) toolkit that is dedicated to making deployments of ML workflows on Kubernetes simple, portable, and scalable.

SDK: Overview of the Kubeflow pipelines service Kubeflow is a machine learning (ML) toolkit that is dedicated to making deployments of ML workflows on

Kubeflow 3.1k Jan 06, 2023
A classification model capable of accurately predicting the price of secondhand cars

The purpose of this project is create a classification model capable of accurately predicting the price of secondhand cars. The data used for model building is open source and has been added to this

Akarsh Singh 2 Sep 13, 2022
Transform ML models into a native code with zero dependencies

m2cgen (Model 2 Code Generator) - is a lightweight library which provides an easy way to transpile trained statistical models into a native code

Bayes' Witnesses 2.3k Jan 03, 2023
Machine Learning approach for quantifying detector distortion fields

DistortionML Machine Learning approach for quantifying detector distortion fields. This project is a feasibility study for training a surrogate model

Joel Bernier 1 Nov 05, 2021
Conducted ANOVA and Logistic regression analysis using matplot library to visualize the result.

Intro-to-Data-Science Conducted ANOVA and Logistic regression analysis. Project ANOVA The main aim of this project is to perform One-Way ANOVA analysi

Chris Yuan 1 Feb 06, 2022
Machine Learning toolbox for Humans

Reproducible Experiment Platform (REP) REP is ipython-based environment for conducting data-driven research in a consistent and reproducible way. Main

Yandex 663 Dec 31, 2022
Katana project is a template for ASAP 🚀 ML application deployment

Katana project is a FastAPI template for ASAP 🚀 ML API deployment

Mohammad Shahebaz 100 Dec 26, 2022
Python package for stacking (machine learning technique)

vecstack Python package for stacking (stacked generalization) featuring lightweight functional API and fully compatible scikit-learn API Convenient wa

Igor Ivanov 671 Dec 25, 2022
Extended Isolation Forest for Anomaly Detection

Table of contents Extended Isolation Forest Summary Motivation Isolation Forest Extension The Code Installation Requirements Use Citation Releases Ext

Sahand Hariri 377 Dec 18, 2022
nn-Meter is a novel and efficient system to accurately predict the inference latency of DNN models on diverse edge devices

A DNN inference latency prediction toolkit for accurately modeling and predicting the latency on diverse edge devices.

Microsoft 241 Dec 26, 2022
moDel Agnostic Language for Exploration and eXplanation

moDel Agnostic Language for Exploration and eXplanation Overview Unverified black box model is the path to the failure. Opaqueness leads to distrust.

Model Oriented 1.2k Jan 04, 2023