lhenry15 / tods-gui

Other
10 stars 3 forks source link

Running the GUI #1

Open AlnetharyTamim opened 3 years ago

AlnetharyTamim commented 3 years ago

I tried different trails to run the GUI but not success. 1: I first used docker image based on python3.5 and I used the command pip3 install -e . I got many problems with installing the packages. After some fightings, I was able to install them all but then when I run the command tods-gui, I got memory dump and I was not able to fix this error something like "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found." 2: I used ubuntu 20.04 directly to install python3.5 and I also used python3.6 and followed the instruction but I reached the same error

  1. I used anaconda with two virtual environments of python3.5 and python3.6 In each venvironment, I run the command pip install -e . and everything installed peacefully, but when I run the command tods-gui nothing appear to be executed

Any help to be able to use the GUI? Thanks

AlnetharyTamim commented 3 years ago

The following error is generated when I run tods-gui in docker contrainter qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

AlnetharyTamim commented 3 years ago

If not using docker, the error is qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

AlnetharyTamim commented 3 years ago

I installed orange3 and the followed the instruction, but the problem is before installing tods-gui, the orange-canvas was working fine, but after I installed tods-gui, the canvas is showning an error message

image

Any suggestion

AlnetharyTamim commented 3 years ago

I tried to install orange==3.26.0 for compatibility but I reach the same error message

lhenry15 commented 3 years ago

Is there any information show up in the terminal?

AlnetharyTamim commented 3 years ago

Thanks, it is working now. But, I still did not get the same widgets as described in the youtube video. image Any sugesstion

lhenry15 commented 3 years ago

Could you try "file" --> "open recent", to see if you are able to find the default pipeline? There are some instruction in the default pipeline. It will be a bit different from the one in video as it was a very early version and mostly serve for demo purpose (only few function would work).

AlnetharyTamim commented 3 years ago

When I run the default pipeline example of tods, I got the bellow error. Although that I used the correct version of d3m which is 2020.05.18 by checking d3m.__version__. I am using python3.6 and venv as a virtual environment with pip version 19.3.1.

Not all provided hyper-parameters for the data preparation pipeline 79ce71bd-db96-494b-a455-14f2e2ac5040 were used: ['method', 'number_of_folds', 'randomSeed', 'shuffle', 'stratified']
{'error': "[StepFailedError('Step 6 for pipeline "
          "384bbfab-4f6d-4001-9f90-684ea5681f5d failed.',)]",
 'method_called': 'evaluate',
 'pipeline': '<d3m.metadata.pipeline.Pipeline object at 0x7fdde588c2e8>',
 'status': 'ERRORED'}
AlnetharyTamim commented 3 years ago

Could you try "file" --> "open recent", to see if you are able to find the default pipeline? There are some instruction in the default pipeline. It will be a bit different from the one in video as it was a very early version and mostly serve for demo purpose (only few function would work).

Unfortunately, there is nothing appear when select open recent. I think the problem is related to d3m, I need to be able to run the example in the tods repository without error When I run the code

import pandas as pd

from tods import schemas as schemas_utils
from tods import generate_dataset, evaluate_pipeline

table_path = 'datasets/yahoo_sub_5.csv'
target_index = 6 # what column is the target
metric = 'F1_MACRO' # F1 on both label 0 and 1

# Read data and generate dataset
df = pd.read_csv(table_path)
dataset = generate_dataset(df, target_index)

# Load the default pipeline
pipeline = schemas_utils.load_default_pipeline()

# Run the pipeline
pipeline_result = evaluate_pipeline(dataset, pipeline, metric)
print(pipeline_result)

I get the following error

Not all provided hyper-parameters for the data preparation pipeline 79ce71bd-db96-494b-a455-14f2e2ac5040 were used: ['method', 'number_of_folds', 'randomSeed', 'shuffle', 'stratified']
{'error': "[StepFailedError('Step 6 for pipeline "
          "384bbfab-4f6d-4001-9f90-684ea5681f5d failed.',)]",
 'method_called': 'evaluate',
 'pipeline': '<d3m.metadata.pipeline.Pipeline object at 0x7fdde588c2e8>',
 'status': 'ERRORED'}

This error arise although that I used the correct version of d3m which is 2020.05.18 by checking d3m.__version__. I am using python3.6 and venv as a virtual environment with pip version 19.3.1.

lhenry15 commented 3 years ago

Got it, the problem is due to the change of primitive_id. Building the pipelines in the tods/example manually will work. We are preparing a major update, will fix this problem very soon in the next version. Thanks!!

bappctl commented 3 years ago

@AlnetharyTamim Can you share the steps that you followed to bring-up the tods-ui

lhenry15 commented 3 years ago
  1. go to tods repository and "git checkout dev"
  2. install latest tods in dev branch "pip install -e ."
  3. go to tods-gui repository and install "pip install -e ."
  4. run tods-gui with command "tods-gui"
  5. click "file-->open recent-->.tods_default.ows" and build a pipeline follow the instruction.

Currently, the dataset format in gui NEED TO BE d3m dataset format (one example can be found in "tods/datasets/anomaly/yahoo_sub_5/yahoo_sub_5_dataset/", just load the whole folder). We are working on making it directly work with csv file, will release it later.

bappctl commented 3 years ago
lhenry15 commented 3 years ago
  1. python 3.6 to install tods (dev version) with tods-gui is the correct way.
  2. both tods and tods-gui are developed under python3.6. Specifically for tods, it currently only supports python 3.6. We are working on supporting latest python (3.6+) as well.
bappctl commented 3 years ago

As suggested installed both tods (from dev branch not master) and tods-gui in same conda python 3.6 environment.

wardnath commented 3 years ago

@lhenry15 could you give some instructions on how to replicate the video shown on the research group website? https://www.youtube.com/watch?v=H0bBXuDUe7s

Songyihu commented 1 year ago

Got it, the problem is due to the change of primitive_id. Building the pipelines in the tods/example manually will work. We are preparing a major update, will fix this problem very soon in the next version. Thanks!!

Thanks for sharing your great work! Are you still working on it? I installed the tods-gui recently, it seems the problem still exist.