Let be a finite quandle and an abelian group.
A function
is called a quandle -cocycle if it satisfies the -cocycle condition
Let be a coloring of arcs and regions of a given diagram of a classical knot . Let be the ordered triple of colors at a crossing , see Fig. of Chapter . Let be a -cocycle. Then the weight in this case is defined by where is for positive and negative crossing, respectively. Then the (-)cocycle invariant is defined in a similar way to -cocycle invariants by . The multiset version is defined similarly.