Compare commits
No commits in common. "594ebf9409fa0f5e78b6d3756d4b7a611629efcf" and "53b5c63c86fbe52879c88453d659ba0b8a2ae2a4" have entirely different histories.
594ebf9409
...
53b5c63c86
185
Scales/test.json
185
Scales/test.json
@ -1,185 +0,0 @@
|
||||
{
|
||||
"item": {
|
||||
"A1": "I know how to comfort others",
|
||||
"A2": "I enjoy bringing people together",
|
||||
"A3": "I feel others' emotions",
|
||||
"A4": "I take an interest in other people's lives",
|
||||
"A5": "I cheer people up",
|
||||
"A6": "I make people feel at ease",
|
||||
"A7": "I take time out for others",
|
||||
"A8": "I don't like to get involved in other people's problems",
|
||||
"A9": "I am not really interested in others",
|
||||
"A10": "I try not to think about the needy",
|
||||
"B1": "I make insightful remarks",
|
||||
"B2": "I know the answers to many questions",
|
||||
"B3": "I tend to analyze things",
|
||||
"B4": "I use my brain",
|
||||
"B5": "I learn quickly",
|
||||
"B6": "I counter others' arguments",
|
||||
"B7": "I reflect on things before acting",
|
||||
"B8": "I weigh the pros against the cons",
|
||||
"B9": "I consider myself an average person",
|
||||
"B10": "I get confused easily",
|
||||
"B11": "I know that I am not a special person",
|
||||
"B12": "I have a poor vocabulary",
|
||||
"B13": "I skip difficult words while reading",
|
||||
"C1": "I seldom feel blue",
|
||||
"C2": "I feel comfortable with myself",
|
||||
"C3": "I readily overcome setbacks",
|
||||
"C4": "I am relaxed most of the time",
|
||||
"C5": "I am not easily frustrated",
|
||||
"C6": "I have frequent mood swings",
|
||||
"C7": "I often feel blue",
|
||||
"C8": "I dislike myself",
|
||||
"C9": "I feel desperate",
|
||||
"C10": "I am easily discouraged",
|
||||
"D1": "I take charge",
|
||||
"D2": "I want to be in charge",
|
||||
"D3": "I say what I think",
|
||||
"D4": "I am not afraid of providing criticism",
|
||||
"D5": "I take control of things",
|
||||
"D6": "I can take strong measures",
|
||||
"D7": "I wait for others to lead the way",
|
||||
"D8": "I never challenge things",
|
||||
"D9": "I let others make the decisions",
|
||||
"D10": "I let myself be pushed around",
|
||||
"E1": "I am the life of the party",
|
||||
"E2": "I love large parties",
|
||||
"E3": "I joke around a lot",
|
||||
"E4": "I enjoy being part of a loud crowd",
|
||||
"E5": "I amuse my friends",
|
||||
"E6": "I act wild and crazy",
|
||||
"E7": "I seldom joke around",
|
||||
"E8": "I don't like crowded events",
|
||||
"E9": "I am the last to laugh at a joke",
|
||||
"E10": "I dislike loud music",
|
||||
"F1": "I believe laws should be strictly enforced",
|
||||
"F2": "I try to follow the rules",
|
||||
"F3": "I believe in one true religion",
|
||||
"F4": "I respect authority",
|
||||
"F5": "I like to stand during the national anthem",
|
||||
"F6": "I resist authority",
|
||||
"F7": "I break rules",
|
||||
"F8": "I use swear words",
|
||||
"F9": "I oppose authority",
|
||||
"F10": "I know how to get around the rules",
|
||||
"G1": "I feel comfortable around people",
|
||||
"G2": "I talk to a lot of different people at parties",
|
||||
"G3": "I don't mind being the center of attention",
|
||||
"G4": "I make friends easily",
|
||||
"G5": "I start conversations",
|
||||
"G6": "I find it difficult to approach others",
|
||||
"G7": "I often feel uncomfortable around others",
|
||||
"G8": "I have little to say",
|
||||
"G9": "I am quiet around strangers",
|
||||
"G10": "I keep in the background",
|
||||
"H1": "I like to read",
|
||||
"H2": "I enjoy discussing movies and books with others",
|
||||
"H3": "I read a lot",
|
||||
"H4": "I don't like action movies",
|
||||
"H5": "I cry during movies",
|
||||
"H6": "I love flowers",
|
||||
"H7": "I do not enjoy watching dance performances",
|
||||
"H8": "I do not like poetry",
|
||||
"H9": "I dislike works of fiction",
|
||||
"H10": "I rarely notice my emotional reactions",
|
||||
"I1": "I find it hard to forgive others",
|
||||
"I2": "I suspect hidden motives in others",
|
||||
"I3": "I am wary of others",
|
||||
"I4": "I distrust people",
|
||||
"I5": "I believe that people seldom tell you the whole truth",
|
||||
"I6": "I believe that people are essentially evil",
|
||||
"I7": "I trust what people say",
|
||||
"I8": "I trust others",
|
||||
"I9": "I believe that others have good intentions",
|
||||
"I10": "I believe that people are basically moral",
|
||||
"J1": "I do things that others find strange",
|
||||
"J2": "I like to get lost in thought",
|
||||
"J3": "I enjoy wild flights of fantasy",
|
||||
"J4": "I love to daydream",
|
||||
"J5": "I swim against the current",
|
||||
"J6": "I take deviant positions",
|
||||
"J7": "I do unexpected things",
|
||||
"J8": "I do things by the book",
|
||||
"J9": "I seldom daydream",
|
||||
"J10": "I seldom get lost in thought",
|
||||
"K1": "I reveal little about myself",
|
||||
"K2": "I am hard to get to know",
|
||||
"K3": "I don't talk a lot",
|
||||
"K4": "I bottle up my feelings",
|
||||
"K5": "I keep my thoughts to myself",
|
||||
"K6": "I am open about myself to others",
|
||||
"K7": "I am open about my feelings",
|
||||
"K8": "I disclose my intimate thoughts",
|
||||
"K9": "I show my feelings",
|
||||
"K10": "I am willing to talk about myself",
|
||||
"L1": "I am afraid that I will do the wrong thing",
|
||||
"L2": "I feel threatened easily",
|
||||
"L3": "I am easily hurt",
|
||||
"L4": "I worry about things",
|
||||
"L5": "I spend time thinking about past mistakes",
|
||||
"L6": "I feel guilty when I say 'no'",
|
||||
"L7": "I feel crushed by setbacks",
|
||||
"L8": "I don't worry about things that have already happened",
|
||||
"L9": "I am not easily bothered by things",
|
||||
"L10": "I don't let others discourage me",
|
||||
"M1": "I believe in the importance of art",
|
||||
"M2": "I love to think up new ways of doing things",
|
||||
"M3": "I enjoy hearing new ideas",
|
||||
"M4": "I carry the conversation to a higher level",
|
||||
"M5": "I prefer variety to routine",
|
||||
"M6": "I avoid philosophical discussions",
|
||||
"M7": "I rarely look for a deeper meaning in things",
|
||||
"M8": "I am not interested in theoretical discussions",
|
||||
"M9": "I am not interested in abstract ideas",
|
||||
"M10": "I try to avoid complex people",
|
||||
"N1": "I want to be left alone",
|
||||
"N2": "I prefer to do things by myself",
|
||||
"N3": "I enjoy spending time by myself",
|
||||
"N4": "I seek quiet",
|
||||
"N5": "I don't mind eating alone",
|
||||
"N6": "I enjoy silence",
|
||||
"N7": "I enjoy my privacy",
|
||||
"N8": "I enjoy being part of a group",
|
||||
"N9": "I enjoy teamwork",
|
||||
"N10": "I can't do without the company of others",
|
||||
"O1": "I want everything to be 'just right'",
|
||||
"O2": "I get chores done right away",
|
||||
"O3": "I like order",
|
||||
"O4": "I continue until everything is perfect",
|
||||
"O5": "I am exacting in my work",
|
||||
"O6": "I am not bothered by messy people",
|
||||
"O7": "I am not bothered by disorder",
|
||||
"O8": "I leave a mess in my room",
|
||||
"O9": "I leave my belongings around",
|
||||
"O10": "I put off unpleasant tasks",
|
||||
"P1": "I get irritated easily",
|
||||
"P2": "I get angry easily",
|
||||
"P3": "I am quick to judge others",
|
||||
"P4": "I am annoyed by others' mistakes",
|
||||
"P5": "I am easily put out",
|
||||
"P6": "I can't stand being contradicted",
|
||||
"P7": "I judge people by their appearance",
|
||||
"P8": "I am not easily annoyed",
|
||||
"P9": "I try to forgive and forget",
|
||||
"P10":"I have a good word for everyone."
|
||||
},
|
||||
"reverse":[
|
||||
"A8","A9","A10",
|
||||
"B9","B10","B11","B12","B13",
|
||||
"C6","C7","C8","C9","C10",
|
||||
"D7","D8","D9","D10",
|
||||
"E7","E8","E9","E10",
|
||||
"F6","F7","F8","F9","F10",
|
||||
"G6","G7","G8","G9","G10",
|
||||
"H7","H8","H9","H10",
|
||||
"I7","I8","I9","I10",
|
||||
"J8","J9","J10",
|
||||
"K6","K7","K8","K9","K10",
|
||||
"L8","L9","L10",
|
||||
"M6","M7","M8","M9","M10",
|
||||
"N8","N9","N10",
|
||||
"O6","O7","O8","O9","O10",
|
||||
"P8","P9","P10"
|
||||
]
|
||||
}
|
16
file_load.py
16
file_load.py
@ -24,16 +24,6 @@ def batch():
|
||||
# print(items)
|
||||
return items
|
||||
|
||||
def reverse_list():
|
||||
scales = os.listdir("Scales")
|
||||
items=[]
|
||||
for i in scales:
|
||||
with open("Scales/"+i,"r") as scale:
|
||||
tmp = json.load(scale)
|
||||
items.extend(tmp["reverse"])
|
||||
# print(items)
|
||||
return items
|
||||
|
||||
def old_type(str):
|
||||
with open(str,"r") as file:
|
||||
scale=json.load(file)
|
||||
@ -88,18 +78,12 @@ def make_data():
|
||||
|
||||
def corelation():
|
||||
data = pandas.read_csv("Work/data.csv")
|
||||
rev=reverse_list()
|
||||
print(rev)
|
||||
que={}
|
||||
for i in data:
|
||||
for j in data:
|
||||
if i!=j:
|
||||
try:
|
||||
que[i,j]=data[i].corr(data[j])
|
||||
if i in rev:
|
||||
que[i,j]*=-1
|
||||
if j in rev:
|
||||
que[i,j]*=-1
|
||||
que[j,i]=que[i,j]
|
||||
except:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user