model.deploy to table and s.table.loadTable don't work well together

Offen
#280 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
database

Rechercherichtung

Start by reproducing the interaction between model.deploy(..., output_format='table') and s.table.loadTable(..., loadattrs=True) using the paths and table names in the report. Trace how the deployed attributes table is named versus the name loadTable expects; done means the generated tables load without manually renaming the attributes file.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

If I deploy a model to table using,
model.deploy(path='/path/to/dir', output_format='table')
it produces 3 tables

modelname.sashdat
modelname_weights.sashdat
modelname_weights_attr.sashdat

If I try to load these tables with

s.table.loadTable it will complain that it can't find modelname.ATTRS.sashdat , if I rename the attributes table to what it expects it will work.

modeldetect = s.table.loadTable(caslib='scz', path='detectmobile/Model_M43t70.sashdat', loadattrs=True)
modeldetectname = s.table.loadTable(caslib='scz',casout={'name':'mobiledetect'}, path='detectmobile/Model_M43t70_weights.sashdat')

Vorherrschende Sprache
Python
Sterne
224
Forks
129
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus sassoftware/python-dlpy

Alle Issues in sassoftware/python-dlpy

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.