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)
An AutoML survey focusing on practical systems.

This project is a community effort in constructing and maintaining an up-to-date beginner-friendly introduction to AutoML, focusing on practical systems. AutoML is a big field, and continues to grow

AutoGOAL 16 Aug 14, 2022
AutoOED: Automated Optimal Experiment Design Platform

AutoOED is an optimal experiment design platform powered with automated machine learning to accelerate the discovery of optimal solutions. Our platform solves multi-objective optimization problems an

Yunsheng Tian 107 Jan 03, 2023
Predicting diabetes over a five year period using logistic regression and the Pima First-Nation dataset

Diabetes This script uses the Pima First Nations dataset to create a model to predict whether or not an individual will develop Diabetes Mellitus Type

1 Mar 28, 2022
Climin is a Python package for optimization, heavily biased to machine learning scenarios

climin climin is a Python package for optimization, heavily biased to machine learning scenarios distributed under the BSD 3-clause license. It works

Biomimetic Robotics and Machine Learning at Technische Universität München 177 Sep 02, 2022
Automatically create Faiss knn indices with the most optimal similarity search parameters.

It selects the best indexing parameters to achieve the highest recalls given memory and query speed constraints.

Criteo 419 Jan 01, 2023
Bayesian Modeling and Computation in Python

Bayesian Modeling and Computation in Python Open access and Code This repository contains the open access version of the text and the code examples in

Bayesian Modeling and Computation in Python 339 Jan 02, 2023
Machine Learning Algorithms

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

Göktuğ Ayar 3 Aug 10, 2022
Generate music from midi files using BPE and markov model

Generate music from midi files using BPE and markov model

Aditya Khadilkar 37 Oct 24, 2022
Avocado hass time series vs predict price

AVOCADO HASS TIME SERIES VÀ PREDICT PRICE Trước khi vào Heroku muốn giao diện đẹp mọi người chuyển giúp mình theo hình bên dưới https://avocado-hass.h

hieulmsc 3 Dec 18, 2021
Used Logistic Regression, Random Forest, and XGBoost to predict the outcome of Search & Destroy games from the Call of Duty World League for the 2018 and 2019 seasons.

Call of Duty World League: Search & Destroy Outcome Predictions Growing up as an avid Call of Duty player, I was always curious about what factors led

Brett Vogelsang 2 Jan 18, 2022
A Python implementation of FastDTW

fastdtw Python implementation of FastDTW [1], which is an approximate Dynamic Time Warping (DTW) algorithm that provides optimal or near-optimal align

tanitter 651 Jan 04, 2023
This jupyter notebook project was completed by me and my friend using the dataset from Kaggle

ARM This jupyter notebook project was completed by me and my friend using the dataset from Kaggle. The world Happiness 2017, which ranks 155 countries

1 Jan 23, 2022
This handbook accompanies the course: Machine Learning with Hung-Yi Lee

This handbook accompanies the course: Machine Learning with Hung-Yi Lee

RenChu Wang 472 Dec 31, 2022
🌊 River is a Python library for online machine learning.

River is a Python library for online machine learning. It is the result of a merger between creme and scikit-multiflow. River's ambition is to be the go-to library for doing machine learning on strea

OnlineML 4k Jan 03, 2023
Optimal Randomized Canonical Correlation Analysis

ORCCA Optimal Randomized Canonical Correlation Analysis This project is for the python version of ORCCA algorithm. It depends on Numpy for matrix calc

Yinsong Wang 1 Nov 21, 2021
Automated machine learning: Review of the state-of-the-art and opportunities for healthcare

Automated machine learning: Review of the state-of-the-art and opportunities for healthcare

42 Dec 23, 2022
cuML - RAPIDS Machine Learning Library

cuML - GPU Machine Learning Algorithms cuML is a suite of libraries that implement machine learning algorithms and mathematical primitives functions t

RAPIDS 3.1k Dec 28, 2022
A simple example of ML classification, cross validation, and visualization of feature importances

Simple-Classifier This is a basic example of how to use several different libraries for classification and ensembling, mostly with sklearn. Example as

Rob 2 Aug 25, 2022
A collection of video resources for machine learning

Machine Learning Videos This is a collection of recorded talks at machine learning conferences, workshops, seminars, summer schools, and miscellaneous

Dustin Tran 1.5k Dec 29, 2022
MasTrade is a trading bot in baselines3,pytorch,gym

mastrade MasTrade is a trading bot in baselines3,pytorch,gym idea we have for example 1 btc and we buy a crypto with it with market option to trade in

Masoud Azizi 18 May 24, 2022