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)
Pyomo is an object-oriented algebraic modeling language in Python for structured optimization problems.

Pyomo is a Python-based open-source software package that supports a diverse set of optimization capabilities for formulating and analyzing optimization models. Pyomo can be used to define symbolic problems, create concrete problem instances, and solve these instances with standard solvers.

Pyomo 1.4k Dec 28, 2022
An open source framework that provides a simple, universal API for building distributed applications. Ray is packaged with RLlib, a scalable reinforcement learning library, and Tune, a scalable hyperparameter tuning library.

Ray provides a simple, universal API for building distributed applications. Ray is packaged with the following libraries for accelerating machine lear

null 23.3k Dec 31, 2022
A modular active learning framework for Python

Modular Active Learning framework for Python3 Page contents Introduction Active learning from bird's-eye view modAL in action From zero to one in a fe

modAL 1.9k Dec 31, 2022
Karate Club: An API Oriented Open-source Python Framework for Unsupervised Learning on Graphs (CIKM 2020)

Karate Club is an unsupervised machine learning extension library for NetworkX. Please look at the Documentation, relevant Paper, Promo Video, and Ext

Benedek Rozemberczki 1.8k Jan 3, 2023
Machine-care - A simple python script to take care of simple maintenance tasks

Machine care An simple python script to take care of simple maintenance tasks fo

null 2 Jul 10, 2022
A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.

Light Gradient Boosting Machine LightGBM is a gradient boosting framework that uses tree based learning algorithms. It is designed to be distributed a

Microsoft 14.5k Jan 7, 2023
A unified framework for machine learning with time series

Welcome to sktime A unified framework for machine learning with time series We provide specialized time series algorithms and scikit-learn compatible

The Alan Turing Institute 6k Jan 6, 2023
BigDL: Distributed Deep Learning Framework for Apache Spark

BigDL: Distributed Deep Learning on Apache Spark What is BigDL? BigDL is a distributed deep learning library for Apache Spark; with BigDL, users can w

null 4.1k Jan 9, 2023
A Lucid Framework for Transparent and Interpretable Machine Learning Models.

Currently a Beta-Version lucidmode is an open-source, low-code and lightweight Python framework for transparent and interpretable machine learning mod

lucidmode 15 Aug 12, 2022
Automated modeling and machine learning framework FEDOT

This repository contains FEDOT - an open-source framework for automated modeling and machine learning (AutoML). It can build custom modeling pipelines for different real-world processes in an automated way using an evolutionary approach. FEDOT supports classification (binary and multiclass), regression, clustering, and time series prediction tasks.

National Center for Cognitive Research of ITMO University 148 Jul 5, 2021
Xeasy-ml is a packaged machine learning framework.

xeasy-ml 1. What is xeasy-ml Xeasy-ml is a packaged machine learning framework. It allows a beginner to quickly build a machine learning model and use

null 9 Mar 14, 2022
machine learning model deployment project of Iris classification model in a minimal UI using flask web framework and deployed it in Azure cloud using Azure app service

This is a machine learning model deployment project of Iris classification model in a minimal UI using flask web framework and deployed it in Azure cloud using Azure app service. We initially made this project as a requirement for an internship at Indian Servers. We are now making it open to contribution.

Krishna Priyatham Potluri 73 Dec 1, 2022
Merlion: A Machine Learning Framework for Time Series Intelligence

Merlion is a Python library for time series intelligence. It provides an end-to-end machine learning framework that includes loading and transforming data, building and training models, post-processing model outputs, and evaluating model performance. I

Salesforce 2.8k Jan 5, 2023
XManager: A framework for managing machine learning experiments 🧑‍🔬

XManager is a platform for packaging, running and keeping track of machine learning experiments. It currently enables one to launch experiments locally or on Google Cloud Platform (GCP). Interaction with experiments is done via XManager's APIs through Python launch scripts.

DeepMind 620 Dec 27, 2022
Hypernets: A General Automated Machine Learning framework to simplify the development of End-to-end AutoML toolkits in specific domains.

A General Automated Machine Learning framework to simplify the development of End-to-end AutoML toolkits in specific domains.

DataCanvas 216 Dec 23, 2022
ZenML 🙏: MLOps framework to create reproducible ML pipelines for production machine learning.

ZenML is an extensible, open-source MLOps framework to create production-ready machine learning pipelines. It has a simple, flexible syntax, is cloud and tool agnostic, and has interfaces/abstractions that are catered towards ML workflows.

ZenML 2.6k Jan 8, 2023
Python Research Framework

Python Research Framework

EleutherAI 106 Dec 13, 2022
A Python implementation of GRAIL, a generic framework to learn compact time series representations.

GRAIL A Python implementation of GRAIL, a generic framework to learn compact time series representations. Requirements Python 3.6+ numpy scipy tslearn

null 3 Nov 24, 2021
🎛 Distributed machine learning made simple.

?? lazycluster Distributed machine learning made simple. Use your preferred distributed ML framework like a lazy engineer. Getting Started • Highlight

Machine Learning Tooling 44 Nov 27, 2022