⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setup.py

📁 python 神经网络 数据挖掘 python实现的神经网络算法
💻 PY
字号:
#!/usr/bin/python



from distutils.core import setup, Extension

import glob

#from compiler.pycodegen import compileFile

#import distutils

#import distutils.sysconfig

#import distutils.core

import os



NAME='pyfann'

VERSION='2.0.0'



LONG_DESCRIPTION="""\

Fast Artificial Neural Network Library implements multilayer

artificial neural networks with support for both fully connected

and sparsely connected networks. It includes a framework for easy 

handling of training data sets. It is easy to use, versatile, well 

documented, and fast. 

"""



#These lines are needed to circumvent a bug in distutils

swig_cmd = 'swig -c++ -python pyfann/pyfann.i'

print 'Running SWIG before:', swig_cmd

os.system(swig_cmd)



#This utility function searches for files

def hunt_files(root, which):

    return glob.glob(os.path.join(root, which))



setup(

    name=NAME,

    description='Fast Artificial Neural Network Library (fann)',

    long_description=LONG_DESCRIPTION,

    version=VERSION,

    author='Steffen Nissen',

    author_email='lukesky@diku.dk',

    maintainer='Gil Megidish & Vincenzo Di Massa',

    maintainer_email='gil@megidish.net & hawk.it@tiscali,it',

    url='http://sourceforge.net/projects/fann/',

    license='GNU LESSER GENERAL PUBLIC LICENSE (LGPL)',

    py_modules=['pyfann.libfann'],

    ext_modules=[Extension('pyfann._libfann',['pyfann/pyfann_wrap.cxx'], 

                            include_dirs=['../src/include'], 

                            extra_objects=['../src/doublefann.o'],

                            define_macros=[("SWIG_COMPILE",None)]

                            ),

                ]

)



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -