Skip to main content

Some computing tools about feature tool and ml model.

Project description

Mega Spark说明

该项目旨在通过spark进行一站式数据分析与模型训练,保证最终落地的只有分析报告,可视化,以及模型训练评估结果,其次 该项目将pysaprk封装成mega对象来延续pandas的使用方法,进而实现在大数据场景下的使用pandas方法进行 数据分析和模型训练,消除相关同学在spark上投入的学习成本

目前提供以下模块:

  • ml
    • mega_xgboost
  • sql
    • megaframe
  • tomega

本地安装

如果要给该项目贡献代码,在本地调试好后测试,本地安装方法

$ git clone .
$ cd megaspark
$ python install .

在线安装

建议使用官方镜像,安装最新版本。

$ pip install mega-spark -i https://pypi.Python.org/simple/

使用教程

tomega模块为例,安装完成之后,可以使用以下方法导入使用

import megaspark.tomega as mg

data_df = mg.read_csv("path/to/file.csv")
data_df.mega.head(5)

打包发布

$ cd /path/to/megaspark
$ python3 setup.py sdist bdist_wheel
$ pip3 install twine
$ python3 -m twine upload dist/*

注意事项

如果使用ml模块中的xgboost,需要在SPARK_HOME/jar中添加xgboost4j-0.72.jar以及xgboost4j-spark-0.72.jar

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mega-spark-1.1.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mega_spark-1.1.1-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file mega-spark-1.1.1.tar.gz.

File metadata

  • Download URL: mega-spark-1.1.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7

File hashes

Hashes for mega-spark-1.1.1.tar.gz
Algorithm Hash digest
SHA256 3c0a16d11defb42de69f4b7820202a5ad374223eb5c9c3e8091641ccfb0689a7
MD5 072ec7268c3f03ace396a52250932904
BLAKE2b-256 39cf1824cc4bfa136628e32d162c25812a47f22b34a05cdc35d4569fce788272

See more details on using hashes here.

File details

Details for the file mega_spark-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: mega_spark-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7

File hashes

Hashes for mega_spark-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 619e80c37c79b19a6769f3722e5319dc7bb07605b59c958e3e08d45b1a33311c
MD5 252e5534c0784645f0121e45f2d22c3f
BLAKE2b-256 0d0e639ff6b3062a6e648c606199e30b31920cb653037f95dfe10a7f1765435c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page