Coder Social home page Coder Social logo

tmsvm's People

Contributors

zhzhl202 avatar

Watchers

 avatar

tmsvm's Issues

关于libsvm.so.2在不同的linux系统下不兼容需重新编译的问题

您好,我按照要求重新编译libsvm.so.2,具体做法,首先找到lib
svm-3.12.tar 这个文件,解压,然后切换到python 
目录,执行make,但是结果是失败的请问是什么原因呢

我使用的是32位 liunx系统 ubuntu14.01

下面是make之后的输出:
make -C .. lib
make[1]: 正在进入目录 
`/home/xujingyang/下载/tmsvm_for_linux/libsvm-3.12'
if [ "Linux" = "Darwin" ]; then \
        SHARED_LIB_FLAG="-dynamiclib -W1,-install_name,libsvm.so.2"; \
    else \
        SHARED_LIB_FLAG="-shared -W1,-soname,libsvm.so.2"; \
    fi; \
    g++ ${SHARED_LIB_FLAG} svm.o -o libsvm.so.2
g++: error: unrecognized command line option ‘-W1,-soname,libsvm.so.2’
make[1]: *** [lib] 错误 1
make[1]:正在离开目录 `/home/xujingyang/下载/tmsvm_for_linux/libsvm-3.12'
make: *** [lib] 错误 2

谢谢~



Original issue reported on code.google.com by [email protected] on 19 Aug 2015 at 2:48

输入太大,报错Memory Error

由于我的输入太大,直接使用tmsvm会报错,说memory 
error,所以不知道我能不能直接用index 和 
频率作为输入然后再训练模型呢,谢谢。

Original issue reported on code.google.com by [email protected] on 26 Jun 2014 at 3:21

个人问题提交

不知道算不算bug吧
环境是ubuntu12.04  32bit   python2.7
在使用example.py过程中,发生如下错误
Traceback (most recent call last):
  File "/home/sleeperqp/tmsvm/dependence/pymmseg.py", line 15, in <module>
    mmseg = CDLL(os.path.join(os.path.dirname(__file__),"./mmseg.so.64"))    
  File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/sleeperqp/tmsvm/dependence/./mmseg.so.64: wrong ELF class: 
ELFCLASS64


 在pymmseg.py第15行中找到了原因,将mmseg.so.64修改成32即可
# -*- coding: utf-8 -*-

import sys
from ctypes import *
from ctypes.util import find_library
from os.path import join, dirname, abspath, exists
import os

if find_library('mmseg'):
    mmseg = CDLL(find_library('mmseg'))
else:
    if sys.platform == 'win32':
        mmseg = CDLL(os.path.join(os.path.dirname(__file__),"./mmseg.dll"))
    else:
        mmseg = CDLL(os.path.join(os.path.dirname(__file__),"./mmseg.so.64"))    




最后感谢你的这些工作,真心感谢~

Original issue reported on code.google.com by [email protected] on 25 Aug 2013 at 8:36

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.