Click here to Skip to main content
15,846,727 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-09be8b667407> in <module>
     12 from sklearn import metrics
---> 14 from decagon.optimizer import DecagonOptimizer
     15 from decagon.model import DecagonModel
     16 from decagon.minibatch import EdgeMinibatchIterator

ModuleNotFoundError: No module named 'decagon'

What I have tried:

from __future__ import division
from __future__ import print_function
from operator import itemgetter
from itertools import combinations
import time
import os

import tensorflow as tf
import numpy as np
import networkx as nx
import scipy.sparse as sp
from sklearn import metrics

from decagon.optimizer import DecagonOptimizer
from decagon.model import DecagonModel
from decagon.minibatch import EdgeMinibatchIterator
from decagon.utility import rank_metrics, preprocessing
Richard MacCutchan 6-Mar-23 4:07am    
The error message is perfectly clear. The Python framework cannot find a module named decagon. Check where you have installed it and ensure that the location is in the normal search path.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900