kongzii / SwiftXGBoost

Swift wrapper for XGBoost gradient boosting machine learning framework with Numpy and TensorFlow support.
Apache License 2.0
25 stars 1 forks source link

Readme missing crucial documentation of setting Package.swift #11

Open rcherukuri12 opened 4 years ago

rcherukuri12 commented 4 years ago

Problem: package name and import names differ. Package name : SwiftXGBoost import name : XGBoost

so Package.swift needs: .package(name:"SwiftXGBoost", ...) and target needs: .dependencies : [ .product(name:"XGBoost", package:"SWiftXGBoost")]

kongzii commented 4 years ago

Hi,

is there any particular reason why is this a problem?

I am using it like this and it works just fine.

    dependencies: [
        .package(url: "https://github.com/kongzii/SwiftXGBoost.git", .exact("0.9.0-tensorflow")),
    ],
    targets: [
        .target(
            name: "MyTarget",
            dependencies: [
                "XGBoost",
            ]
        ),