Disease medication prediction

parent 546e4123
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "8bb7f979",
"metadata": {},
"outputs": [],
"source": [
"import warnings\n",
"warnings.filterwarnings(\"ignore\")\n",
"import numpy as np\n",
"import pandas as pd\n",
"import os, sys\n",
"import lux\n",
"from sklearn.preprocessing import MinMaxScaler\n",
"from sklearn.model_selection import train_test_split\n",
"from sklearn.metrics import accuracy_score\n",
"import seaborn as sns\n",
"sns.set()"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "243a2576",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "b057cfb9280c49f9943dbc3a37bb909b",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Button(description='Toggle Pandas/Lux', layout=Layout(top='5px', width='140px'), style=ButtonStyle())"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "fef46c004721417cb00fe56b6ddb12c9",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"df = pd.read_csv('Book1.csv')\n",
"df.head(10)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "c3a547fc",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(5544, 3)"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.shape"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "9789d4ae",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "77c674aac8154b6598af720113c030cd",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Button(description='Toggle Pandas/Lux', layout=Layout(top='5px', width='140px'), style=ButtonStyle())"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3101b7ad33a44f97b4861eafb912c164",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"df.isnull().sum()"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "53dc2bbc",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Index(['prognosis', 'stage', 'medication'], dtype='object')"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.columns"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "12b7840b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'stage 1', 'stage 2', 'stage 3 '}"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"set(df[\"stage\"].tolist())"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "dfd6c56b",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"******************************* prognosis ************************\n",
"\n",
"{'Northern fowl mites', 'Right ventricular failure and ascites syndrome', 'Egg Drop Syndrome', 'Salmonellosis', 'Poultry Lice', 'Histomoniasis', 'Botulism', 'Mycoplasma Disease', 'Infectious Coryza', 'Infectious Bronchitis', 'Newcastle disease', 'Coccidiosis', 'Thrush', 'Fowl Cholera', 'Pullorum ', 'Rot gut disease ', 'Infectious Bursal Disease', 'Avian Influenza', 'Marek’s Disease', 'Aspergillosis', 'Osteomalacia', 'Fowl Pox'}\n",
"\n",
"******************************* stage ************************\n",
"\n",
"{'stage 2', 'stage 1', 'stage 3 '}\n",
"\n",
"******************************* medication ************************\n",
"\n",
"{'Sick birds should be isolated and provided with food and water. Supportive therapy with antibiotics and vitamins has been helpful in some cases. Birds that live through 48 hours of illness usually recover ', 'The vaccine must be of the same serotype as the field strain to generate protective immunity. In general, live vaccines are used in young animals either by spray or drinking water applications.', 'use of any licensed AI vaccine for H1-4, H6, and H8-16 hemagglutinin subtypes requires approval of the state veterinarian. In addition, use of H5 and H7 AI vaccines in the USA requires declaration of an emergency and approval by the Secretary of the USDA.The antiviral drug baloxavir is a polymerase acidic endonuclease inhibitor that is indicated for treatment of patients ≥ 12 years of age with acute uncomplicated influenza who have been symptomatic for ≤ 48 hours.', 'Providing chickens multi-strain probiotics may help improve intestinal health while attenuating inflammatory reaction, clinical signs and mortality.Fowl cholera can be treated with sulfonamides and antibiotics.Prevention.', 'Freedom from infection and elimination of positive birds and flocks is key to control.management and biosecurity measures should be taken to reduce the introduction of S enterica Pullorum from feed, water, wild birds, rodents, insects, or people', 'Administering antibiotics for three to five days may aid in fighting off any secondary bacterial infections. For brooding chicks, it is helpful to raise the room temperature 5°F until symptoms go away', 'Control of Candida through drinking water is sometimes practised with chlorination (e.g. Chlorox, sodium hypochlorite) at 5 ppm. This is economical and effective. It should be repeated periodically. Take care to provide fresh clean feed and water, uncontaminated by fungi.Nystatin (100 ppm in feed) for 7-10 days, copper sulphate (1 kg/tonne feed) for 5 days, or copper sulphate 1gm/2 litre water for 3 days if approved locally.', 'Neuraminidase inhibitors (oseltamivir, zanamivir) is the class of medication that has been shown to be effective in reducing bird flu-related deaths.The antiviral drug baloxavir is a polymerase acidic endonuclease inhibitor that is indicated for treatment of patients ≥ 12 years of age with acute uncomplicated influenza who have been symptomatic for ≤ 48 hours.', \"Proper handling of vaccine during thawing and reconstitution is crucial to ensure that adequate doses are administered. Cell-associated vaccines are generally more effective than cell-free vaccines, because they are neutralized less by maternal antibodies. Under typical conditions, vaccine efficacy is usually >90%. Since the advent of vaccination, losses from Marek's disease have been reduced dramatically in broiler and layer flocks. \", 'Freedom from infection and elimination of positive birds and flocks is key to control.Isolate the bird from the flock and place in a safe, comfortable, warm location (your own chicken \"intensive care unit\") with easy access to water and food. Limit stress.', 'Antibiotics such as sulfadimethoxine, tetracyclines, erythromycin, or penicillin will usually decrease mortality in a flock. A live vaccine will give more widespread protection than the individual inactivated types\\nOxytetracycline - 5 mg/kg SC, IM q12-24h or 2500 mg/L drinking water and 2500 mg/kg feed. Must be given simultaneously in both feed and water to be effective. Do not use outdated medication, because it becomes nephrotoxic. Do not give at the same time as giving products or food containing Al, Ca, Mg, or Fe as it will reduce or alter absorption of the drug.\\nNorfloxacin - 8-10 mg/kg PO q24h or 100 mg/L drinking water for 5 days. Not approved by the FDA for use in food-producing birds.\\nTylosin - 15-30 mg/kg IM q6-12h', 'Animals with osteomalacia should be confined for several weeks after initiation of the supplemental diet. Response to therapy is rapid; within 1 week the animals become more active, and their attitude improves. Jumping or climbing must be prevented, because the skeleton is still susceptible to fractures. Restrictions can be lessened after 3 weeks, but confinement with limited movement is indicated until the skeleton returns to normal (response to treatment should be monitored radiographically). Complete recovery can be achieved within months in animals with no or only minor limb and joint deformities.Can actually reverse the effects quickly, however because it pulls the calcium out of the bloodstream, the bird must first be given calcium and vitamin D3. This drug can be fatal if it is given incorrectly and therefore should only be administered by a vet who has had prior experience using the drug before.', 'The H7N9 and H5N1 viruses are resistant to the earlier antiviral drugs amantadine and rimantadine; resistance or reduced susceptibility to oseltamivir has also been reported.Remove standing water. Reduce food sources. ', 'The ability of the virus to infect cells has been destroyed by treatment with a chemical, radiation or heat. These vaccines invoke only a circulating antibody response.These vaccines are made with virus that is alive and able to infect cells. Strains of virus of low or moderate virulence are used. They mimic natural infection and induce all three immune responses.', 'Control environmental temperature, litter moisture, humidity and air quality to prevent excessive body heat loss and to maintain bird health. Monitor sodium levels in feed and water to prevent salt intoxication. Altitudes above 900 m are inadequate for meat-type chickens, and growth must be slowed to prevent mortality', 'USDA-licensed commercially produced bacterins are available, and bacterins also are produced within states for intrastate use. Bacterins/vaccines also are produced in many other countries. Because serovars A, B, and C are not cross-protective, it is essential that bacterins contain the serovars present in the target population', 'vaccination with an attenuated vaccine of cell-culture origin in the first few weeks of life and revaccination at 12–16 weeks is often sufficient.Providing antibiotics in the drinking water to prevent secondary infection in sick birds, in particular in birds affected by the wet form of the disease.Treating drinking water with iodine at a rate of 1 teaspoon of 1 % iodine solution per 4 litres of drinking water can also promote recovery, in particular from the wet form of the disease', 'Used vaccines are attenuated fowlpox virus and pigeonpox virus isolates of high immunogenicity and low pathogenicity.Providing antibiotics in the drinking water to prevent secondary infection in sick birds, in particular in birds affected by the wet form of the disease', 'Amoxycillin, potentiated sulponamide, tetracylines, fluoroquinolones\\nFermenting - feed Helps chickens become less susceptible to Salmonella infection.\\nProbiotics and prebiotics - Added to diet\\nThyme (Thymus vulgari) extract - 5 mg dried extract/mL (0.5% TVAE),\\nTumeric (Curcuma longa) - 0.1% in the feed\\nAshwagandha (Withania somnifera) - 0.5% of diet', 'Control, affected birds should be culled or isolated, and houses should be cleaned and sprayed frequently, as recommended for the poultry red mite. Individual birds should be treated with oral or topical ivermectin or moxidectin (0.2 mg/kg), 10% sulphur solution, or 0.5% sodium fluoride.Pyrethroids, organophosphates, carbamates, citrus extracts, vegetable oil and mineral-based products (both liquid sand dusts) have been used to control red mites in the environment. For northern fowl mite it is essential to apply approved insecticides to the affected birds', 'Grossly contaminated or cracked eggs should not be set for incubation because they enable bacterial and fungal growth. Contaminated surfaces may be sprayed or fumigated with enilconazole or other fungicidal disinfectant following the label directions', 'Treatment method for small flocks or individual birds is the use of a dusting bath with Sevin®. Place the bird into a garbage bag containing the medicated powder with the birds’ head out and rotate/shake the bag to completely cover the bird with powder. Be sure not to inhale the medicated powder during treatments. The use of a facial mask is recommended to prevent inhaling this medicated powder', 'Stop any antibiotic treatment, Treat with anti-fungal Nystatin for 5 days, Add a probiotic supplement to feed,Add copper sulphate to water', 'Mitigation strategies can include: 1) removing the birds from the contaminated environment; 2) removal of contaminated material(s) to limit further exposure; 3) trying not to disturb the contaminated material(s) in order to limit further aerosolization of spores; and 4) increased ventilation or air exchange rates to possibly minimize the severity of the outbreak. Strict adherence to cleaning and disinfection procedures for any contaminated environment (eg, hatchery, barn, etc.) will minimize the risk of future outbreaks', 'Passive immunity may protect against challenge with homologous IBDV, as does previous infection with homologous avirulent strains. Breeder flocks may be immunised against IBD so that they would transfer protective antibodies to their progenies, such as broiler and pullet chicks. Low-attenuated vaccine strains may cause damage to the bursa of Fabricius and immunosuppression in susceptible chicks. Biosecurity with adequate restriction to farm visitation and distancing from other flocks. Post outbreak hygiene measures may not be effective as the virus can survive for long periods in both housing and water', 'Antibiotics such as bacitracin, penicillin or lincomycin can be used to treat the necrotic enteritis, but it is often impossible to effectively use antibiotics since the disease progresses so rapidly and the toxins involved produce irreversible intestinal damage.Treatment for necrotic enteritis is most commonly administered in the drinking water, with bacitracin (200–400 mg/gal. for 5–7 days), penicillin (1,500,000 u/gal. for 5 days), and lincomycin (64 mg/gal. for 7 days) most often used. In each case, the medicated drinking water should be the sole source of water.', 'Pyrethroids, organophosphates, carbamates, citrus extracts, vegetable oil and mineral-based products (both liquid sand dusts) have been used to control red mites in the environment. For northern fowl mite it is essential to apply approved insecticides to the affected birds', \"Bivalent vaccines consisting of HVT and either the SB-1 or 301B/1 strains of Gallid alphaherpesvirus 3 have been used to provide additional protection against challenge with virulent Marek's disease virus isolates. The most protective commercial vaccine currently available appears to be CVI988/Rispens, an attenuated Marek's disease virus strain that is also commonly mixed with HVT at vaccination.\\nTurkey herpesvirus (HVT, naturally avirulent Meleagrid alphaherpesvirus 1)\\nSB-1 or 301B/1 (naturally avirulent Gallid alphaherpesvirus 3)\\nCVI988/Rispens (attenuated Gallid alphaherpesvirus 2)\", 'Amprolium is commonly used – it’s a liquid that is administered by adding it to the hens’ water supply. However, if your hens are quite sick they may need to take it orally as it’s likely they’re not drinking enough to take in the treatment.And also need to provide your chickens with a vitamin B supplement following treatment – but don’t give them this during treatment as you might render it ineffective', 'Vitamin D3 plays a critical role in regulating the absorption and metabolism of calcium. Therefore, in addition to ensuring that poultry diets have an appropriate level and balance of calcium and phosphorous, they must be adequate in vitamin D3. Bone mineralisation is a constant process and therefore correction of dietary deficiencies or imbalances can ease the condition if identified early enough', 'Most strains of M gallisepticum are sensitive to a number of broad-spectrum antibiotics, including tylosin, tetracyclines, and others but not to penicillins or those that act on the cell wall. Tylosin or tetracyclines have been commonly used to reduce egg transmission or as prophylactic treatment to prevent respiratory disease in broilers', 'Sanitation and cleanliness are the keys to lice and mite control. Sanitation includes cleaning and disinfecting housing facilities and equipment between flocks. Moreover, reducing people traffic through housing facilities is recommended. Eliminating the contact between flocks and wild birds can reduce the potential transfer of external parasites', 'virus is very stable in the environment, strict cleaning, disinfection, pest control and adequate downtime after depopulating a contaminated farm is key to reduce the risk of recurrent outbreaks.Control is based in passive protection of young chicks (MDA protecting chicks from early infection) and active immunization by vaccinatio', 'Avoid excessive use of antibiotics and other stressors. Ensure good hygiene, proprionic acid, sodium or calcium proprionate at 1 kg per tonne continually. A finely divided powder of copper sulphate (where approved) at 200gm/tonne continually or to 14-16 weeks in replacement pullets', 'Laying chickens free of M gallisepticum are desirable, but infection in commercial multiple-age egg farms where depopulation is not feasible is a problem. Inactivated, oil-emulsion bacterins are available and help prevent egg production losses but not infection. Three live vaccines (F-strain, ts-11, and 6/85) have been licensed in the USA for use during the growing phase to provide some protection during lay and may be used in some areas with permission of the State Veterinarian. F-strain is of low virulence in chickens but is fully virulent for turkeys. Vaccinated chickens remain carriers of F-strain, and immunity lasts through the laying season. Vaccine strains ts-11 and 6/85 are less virulent, offer the advantage of improved safety for nontarget birds, and are widely used in commercial layers. A commercial recombinant fowlpox–M gallisepticum vaccine has been marketed', 'Grossly contaminated or cracked eggs should not be set for incubation because they enable bacterial and fungal growth. Affected eggs may explode and disseminate spores throughout the hatching machine. The use of moldy bedding or ranges should be avoided to prevent outbreaks. Contaminated surfaces may be sprayed or fumigated with enilconazole or other fungicidal disinfectant following the label directions', 'Treatment of pullorum disease is not feasible. Recovered birds have a tendency to become carriers of the bacteria. It is best to depopulate a flock that tests positive for Salmonella pullorum', 'Maternal antibody during early brooding of chicks in broiler flocks (and in some commercial layer operations) can minimize early infection, subsequent immunosuppression, or both. Breeder flocks should be vaccinated one or more times during the growing period, first with a live vaccine and again just before egg production with an oil-adjuvanted, inactivated vaccine. Inactivated vaccines of chicken embryo, bursa, or cell-culture origin are available. The latter vaccines induce higher, more uniform, and more persistent levels of antibody than do live vaccines. The immune status of breeder flocks should be monitored periodically with a quantitative serologic test such as virus neutralization or ELISA. If antibody levels decrease, hens should be revaccinated to maintain adequate immunity in the progeny', 'Clean and disinfect the hatchery on a regular basis. Commercial preparations of enilconazole have been used successfully to disinfect hatcheries and poultry farms. Develop a plan to monitor the presence of Aspergillus in the hatchery. Use clean, mold-free litter and feed.', 'Good management, biosecurity, and sanitation and housing birds on wire or concrete floors, or intensive re-littering for floor-housed birds, can reduce the level of infection. Rigorous disinfection of contaminated farms after depopulation has achieved limited success. Live vaccines of chicken embryo or cell-culture origin and of varying low pathogenicity can be administered by eye drop, drinking water, or SC routes at 1–21 days of age.', 'Formalin-inactivated EEE virus vaccines, prepared for use in horses, have been used to protect pheasants against EEE, although their efficacy has been questioned. One-tenth the equine dose of either an eastern or bivalent eastern and western vaccine is injected into the pectoral muscle, preferably at 5–6 wk of age or when birds are released from the brooder hous', 'Replacement chickens should be raised on the same farm or obtained from clean flocks. If replacement pullets are to be placed on a farm that has a history of infectious coryza, bacterins/vaccines are available to help prevent and control the disease', 'Early treatment is important, immediate administration of medication via drinking water is recommended until medicated feed is available. Erythromycin and oxytetracycline are usually effective. Additionally, several newer-generation antimicrobials (eg, fluoroquinolones, macrolides) are active against infectious coryza. Various sulfonamides, including trimethoprim-sulfamethoxazole, and other drug combinations have been successful for treatment.', 'If one has coccidiosis, whole flock must be treated. Isolate sick hens from the rest of the flock and immediately make sure you clean out their coop, checking to ensure their living space and feeding areas are clean and dry', 'Mitigation strategies can include: 1) removing the birds from the contaminated environment; 2) removal of contaminated material(s) to limit further exposure; 3) trying not to disturb the contaminated material(s) in order to limit further aerosolization of spores; and 4) increased ventilation or air exchange rates to possibly minimize the severity and Strict adherence to cleaning and disinfection procedures for any contaminated environment ', 'The most commonly used live vaccines worldwide contain derivatives of the Massachusetts strain (Mass41, H120 and H52). In addition, there are a number of different IBV vaccine types licensed for use in various countries as well as live and killed autogenous vaccines specific for the variant virus in the region.', 'These vaccines are made with virus that is alive and able to infect cells. Strains of virus of low or moderate virulence are used. They mimic natural infection and induce all three immune responses.', \"Prevent chickens' exposure to temperature extremes that may bring on cold or heat stress in birds: A significant increase in the pH and C. perfringens counts were observed in chickens challenged by cold stress. Properly store all poultry feeds and inspect on a daily basis. Don't stock high densities of birds together in the same environment\", 'Even brief exposure to cold stress during the first weeks of life is known to predispose flocks to this condition. Ascites caused by other factors (eg, sodium, lung damage, liver damage, etc) can be prevented by avoiding the etiologic agents involved. Altitudes >3,000 ft (900 m) are unsatisfactory for meat-type chickens, and growth must be slowed to prevent mortality. More care to prevent chilling is also necessary at higher altitudes. Research has demonstrated that broilers can be genetically selected for both resistance and susceptibility to pulmonary hypertension syndrome and associated ascites', 'EEE, WEE, and HJ virus infection and Israel turkey meningoencephalitis are best prevented by measures aimed at reducing vector populations. Such measures include reduction of vector habitats by modifying the environment or by chemical spraying.', 'Used velogenic strains are used in the production of live vaccines\\nF - Lentogenic. Usually used in young chickens but suitable for use as a vaccine in chickens of all ages.\\nB1 - Lentogenic. Slightly more virulent than F, used as a vaccine in chickens of all ages.\\nLa Sota - Lentogenic. Often causes post vaccination respiratory signs, used as a booster vaccine in flocks vaccinated with F or B1.\\nV4 - Avirulent. Used in chickens of all ages.\\nV4-HR - Avirulent. Heat Resistant V4, thermostable, used in chickens of all ages.\\nI-2 - Avirulent. Thermostable, used in chickens of all ages.\\nMukteswar - Mesogenic. An invasive strain, used as a booster vaccine. Can cause adverse reactions (respiratory distress, loss of weight or drop in egg production and even death) if used in partially immune chickens. Usually administered by injection.\\nKomarov - Mesogenic. Less pathogenic than Mukteswar, used as booster vaccine. Usually administered by injection.', 'Relies on good biosecurity practices, with good sanitation and rodent control and separation of birds by age with thorough cleanout between flocks.Isolate the bird from the flock and place in a safe, comfortable, warm location (your own chicken \"intensive care unit\") with easy access to water and food. Limit stress.', 'Replication of these vaccines and thus the immune response can be altered by maternal antibody, although the more virulent vaccine strains can override higher levels of maternal antibody. Vectored vaccines that express the IBDV VP2 protein in herpesvirus of turkeys (HVT) can be used in ovo or at hatch. These HVT-IBD vaccines are not affected by maternal antibodies. Vaccines that use live-attenuated viruses bound to antibodies (immune-complex vaccines) are also available for in ovo or at hatch administration', 'In layers, induced moulting will restore egg production after an episode of EDS infection. The prevention of horizontal spread relies on good biosecurity and washing and disinfecting plastic egg trays before use can control the endemic form. The sporadic form can be prevented by ensuring that chicken flocks do not come into contact with other birds, especially waterfowl. As such, potentially contaminated water should be chlorinated before use and general sanitary precautions should always be followed. There are vaccines available to prevent infection, and if appropriately produced and administered, these inactivated vaccines can prevent clinical disease but will not prevent virus shedding.', 'Prevention is based largely on obtaining chicks or poults from M gallisepticum-free breeder flocks. Eradication of M gallisepticum from chicken and turkey commercial breeding stock is well advanced in the USA because of control programs coordinated by the National Poultry Improvement Plan. The most effective control program is to establish M gallisepticum-free breeder flocks, managed and maintained under good biosecurity to prevent introductions, and monitored regularly with serology to continually confirm infection-free status. In valuable breeding stock, treatment of eggs with antibiotics or heat has been used to eliminate egg transmission to progeny', 'Reducing the birds’ metabolic oxygen requirement by slowing growth or reducing feed density or availability can prevent ascites caused by pulmonary hypertension syndrome. Environmental temperature, humidity, and air movement should be controlled to prevent excessive loss of body heat, particularly in the early neonatal period.', 'Treatment of infected flocks will not alleviate the perpetuation of the carrier state and is never recommended. Control is based on routine serologic testing of breeding stock to assure freedom from infection. In addition, management and biosecurity measures should be taken to reduce the introduction of S enterica Pullorum from feed, water, wild birds, rodents, insects, or people. Birds should be purchased from sources free of S enterica Pullorum. The NPIP outlines the essential components for eradication of S enterica Pullorum', 'Control is based on routine serologic testing of breeding stock to assure freedom from infection. In addition, management and biosecurity measures should be taken to reduce the introduction of S enterica Pullorum from feed, water, wild birds, rodents, insects, or people. Birds should be purchased from sources free of S enterica Pullorum. The NPIP outlines the essential components for eradication of S enterica Pullorum\\nFermenting - feed Helps chickens become less susceptible to Salmonella infection.\\nProbiotics and prebiotics - Added to diet\\nThyme (Thymus vulgari) extract - 5 mg dried extract/mL (0.5% TVAE),\\nTumeric (Curcuma longa) - 0.1% in the feed\\nAshwagandha (Withania somnifera) - 0.5% of diet', 'Controlled by injection of exposed birds with 0.5–1 mL of antiserum obtained from recovered flocks. It is presumed that a similar approach may be effective for pheasants. Due to high labor costs, this is rarely used', 'Sulphonamides, Amprolium & Toltrazuril drugs can be used in the drinking water, No need to destroy infected birds.If the environment that your chickens are kept in is wet, humid, and warm you may need a second dose of treatment to ensure it’s completely eradicated.And also need to provide your chickens with a vitamin B supplement following treatment – but don’t give them this during treatment as you might render it ineffectivelium is available as a premix and is given prophylactically to birds in a final concentration of 0.0125 percent. In combination with 2 other drugs, it is given at a level of 0.006% of each in the food with better effectiveness', 'Especially E acervulina and E maxima infections, as well as changes in the intestinal microflora that would promote its growth. This has traditionally been accomplished by adding antibiotics in the feed such as virginiamycin (20 g/ton feed), bacitracin (50 g/ton feed), and lincomycin (2 g/ton feed), as well as ionophore-class anticoccidial treatments. The move to antibiotic-free feeds has also been associated with markedly increased use of coccidiosis vaccines, resulting in early circulation of mixed Eimeria infections that are associated with the resurgence in incidence of necrotic enteritis. Avoiding drastic changes in feed and minimizing the level of fishmeal, wheat, barley, or rye in the diet can also help prevent necrotic enteritis.', 'Treating dry form lesions with Vetericyn, iodine or another antiseptic to prevent infection and promote healing.Treating drinking water with iodine at a rate of 1 teaspoon of 1 % iodine solution per 4 litres of drinking water can also promote recovery, in particular from the wet form of the disease', \"Revention methods include vaccination, biosecurity, and genetic resistance Vaccination is the central strategy for the prevention and control of Marek's disease, along with strict sanitation to reduce or delay exposure and by breeding for genetic resistance.\", 'Feed laying hens a properly balanced laying or breeding feed. Provide free access to large-particle oyster shell or limestone granules. Allow hens plenty of exercise outdoors.', 'Extra-label use of ivermectin has proven an effective method of control for the northern fowl mite. Like other products, it appears to work best when at least two treatments are made a few days apart.', 'Severe lice or mite infestations can be treated initially with a kitten strength dose of a pyrethrin-based medicated spray on the birds to reduce the initial numbers. If problems persist, contact a veterinarian for treatment with such medications as Ivermectin®. Prevention is the best method of treatment. For poultry used in exhibition or for new poultry entering the flock, a minimum quarantine period of two weeks is recommended. During this time, birds should be physically examined and treated if necessary'}\n",
"\n"
]
}
],
"source": [
"for i in df.columns:\n",
" print(\"*******************************\",i,\"************************\")\n",
" print()\n",
" print(set(df[i].tolist()))\n",
" print()"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "8ab9d011",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"AxesSubplot(0.125,0.125;0.775x0.755)\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAY0AAAEJCAYAAABohnsfAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAfRUlEQVR4nO3dfVhUdf7/8efgCFrYjTaEF8vX0jRb+yUm1yW2LnSHEEIGViuQlG7pumppRSs3iZimKelm6qZumZc3m0QmZoa63rVpJVKry6aum+KqGA7iDYNyI3N+f9hOa1YcjJlBfT3+kfM5Z855H94OrznnzJmxGIZhICIiYoKPtwsQEZFLh0JDRERMU2iIiIhpCg0RETFNoSEiIqYpNERExDSFhoiImGb1dgHudvx4FU6nbkURETHDx8fC9ddf/aPzL/vQcDoNhYaISBPR6SkRETFNoSEiIqYpNERExDSFhoiImKbQEBER0xQaIiJimkJDRERMu+zv0zCrzTWtaOXX0ttlXPaqa+qoPFXd5Ou9/lpfrL5+Tb5e+c7Z2hqOn6x1y7qvudYPP19ft6xbzqmpreXUyZqfvR6Fxrda+bUk6YUl3i7jsrd0ajKVNH1oWH39KJr6ZJOvV77T84U/A+4JDT9fX55Y8Ixb1i3nvD34NeDnh4ZOT4mIiGkKDRERMU2hISIipik0RETENIWGiIiYptAQERHT3PqWW4fDwcCBA3njjTf4+uuvmT59umteWVkZ3bt3Z+7cucyaNYv33nuPa665BoBHH32U5ORkSktLSU1N5dixY9x8883k5ORw9dU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neteNKkSedNl5eXExYWRlZWFm3atGHYsGHk5eXRuXNnbDabazmbzUZZWRnHjx/H398fq9V63nhjtWvn//N2RJqczdbG2yXIRVLvLm1N0T+3hcb3BQcHM3v2bNf0oEGDWLFiBZ06dcJisbjGDcPAYrG4/v1f358249gxB06n0eByejJ4jt1e2eTrVP88wx29A/XPU8z0z8fH8pMvtj327qk9e/awZs0a17RhGFitVgIDA7Hb7a7x8vJyAgICaNu2LZWVldTX1wNgt9tdp7pERMQ7PBYahmHw8ssvc/LkSerq6li2bBmRkZEEBQXh5+dHUVERAPn5+YSHh9OyZUtCQ0NZvXo1ACtWrCA8PNxT5YqIyA/w2Omprl27MnToUBITEzl79ix9+/YlNjYWgJycHDIzM3E4HHTr1o2UlBQAsrKyGDt2LH/6059o374906dP91S5IiLyA9weGhs2bHD9nJycTHJy8gXLdO3alby8vAvGg4KCWLRokVvrExER83RHuIiImKbQEBER0xQaIiJimkJDRERMU2iIiIhpCg0RETFNoSEiIqYpNERExDSFhoiImKbQEBER0xQaIiJimkJDRERMU2iIiIhpCg0RETFNoSEiIqYpNERExDSFhoiImKbQEBER0xQaIiJimltDw+FwEBsby6FDhwBYtmwZsbGxxMXFkZaWRm1tLQCzZs3innvuoX///vTv358lS5YAUFpaSnJyMtHR0QwfPpyqqip3lisiIg1wW2js2LGDxMRESkpKANi/fz9vvvkm77zzDitXrsTpdLJ06VIAiouLmT59Ovn5+eTn55OcnAxAdnY2SUlJFBQUcPvttzNnzhx3lSsiIia4LTRyc3PJysoiICAAAF9fX7KysvD398disdClSxdKS0uBc6Exd+5c4uLimDBhAjU1NdTV1VFYWEhUVBQACQkJFBQUuKtcERExwequFU+aNOm86aCgIIKCggCoqKhgyZIlTJ48maqqKm677TZSU1Pp0KEDY8eOZc6cOSQnJ+Pv74/Veq5Em81GWVlZo+to187/5++MNCmbrY23S5CLpN5d2pqif24LjR9TVlbGk08+yYABA+jVqxcA8+fPd80fMmQI6enpJCUlYbFYznvs96fNOHbMgdNpNLic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OHDh6muriYkJASAhIQECgoKPF2yiIh8y+NHGqdOnaJ37968+OKL1NXVkZKSwpNPPonNZnMtExAQQFlZGUePHj1v3GazUVZW1qjttWvn32S1S9Ow2dp4uwS5SOrdpa0p+ufx0OjRowc9evRwTT/88MPMnDmTnj17usYMw8BiseB0OrFYLBeMN8axYw6cTqPB5fRk8By7vbLJ16n+eYY7egfqn6eY6Z+Pj+UnX2x7/PTU9u3b+fTTT13ThmEQFBSE3W53jdntdgICAggMDDxvvLy8nICAAI/WKyIi3/F4aFRWVjJ16lRqampwOBy8//77PPvss+zfv58DBw5QX1/PqlWrCA8PJygoCD8/P4qKigDIz88nPDzc0yWLiMi3PH566p577mHHjh089NBDOJ1OkpKS6NGjB1OmTGHUqFHU1NQQERFBdHQ0ADk5OWRmZuJwOOjWrRspKSmeLllERL7llRseRo8ezejRo88b6927NytXrrxg2a5du5KXl+ehykRE5KfojnARETFNoSEiIqYpNERExDSFhoiImKbQEBER0xQaIiJimkJDRERMU2iIiIhpCg0RETFNoSEiIqYpNERExDSFhoiImKbQEBER0xQaIiJimkJDRERMU2iIiIhpCg0RETFNoSEiIqYpNERExDSvfEf4rFmz+OijjwCIiIjghRdeIC0tjaKiIlq3bg3AyJEjiYyMZNeuXWRkZFBVVUVoaCjZ2dlYrV4pW0Tkiufxv75bt27lk08+4f3338disfDkk0+ybt06iouLWbx4MQEBAectn5qaysSJEwkJCSE9PZ3c3FySkpI8XbaIiOCF01M2m42xY8fi6+tLy5Yt6dSpE6WlpZSWlpKenk5cXBwzZ87E6XRy+PBhqqurCQkJASAhIYGCggJPlywiIt/y+JFG586dXT+XlJTw0UcfsWTJErZt20ZWVhZt2rRh2LBh5OXl0blzZ2w2m2t5m81GWVlZo7bXrp1/k9UuTcNma+PtEuQiqXeXtqbon9cuDuzdu5dhw4bxwgsv0LFjR2bPnu2aN2jQIFasWEGnTp2wWCyuccMwzps249gxB06n0eByejJ4jt1e2eTrVP88wx29A/XPU8z0z8fH8pMvtr3y7qmioiKeeOIJnnvuOeLj49mzZw9r1qxxzTcMA6vVSmBgIHa73TVeXl5+wTUPERHxHI+HxpEjRxgxYgQ5OTn069cPOBcSL7/8MidPnqSuro5ly5YRGRlJUFAQfn5+FBUVAZCfn094eLinSxYRkW95/PTUm2++SU1NDVOmTHGNDRw4kKFDh5KYmMjZs2fp27cvsbGxAOTk5JCZmYnD4aBbt26kpKR4umQREfmWx0MjMzOTzMzMH5yXnJx8wVjXrl3Jy8tzd1kiImKC7ggXERHTFBoiImKaQkNERExTaIiIiGkKDRERMU2hISIipik0RETENIWGiIiYptAQERHTFBoiImKaQkNERExTaIiIiGkKDRERMU2hISIipik0RETENIWGiIiYptAQERHTFBoiImKaQkNEREy7JELjgw8+ICYmhr59+7JkyRJvlyMicsWyeruAhpSVlTFjxgyWL1+Or68vAwcOpFevXtxyyy3eLk1E5IrT7ENj69athIWFcd111wEQFRVFQUEBI0eONPV4Hx+L6W3dcP3VF1OiNFJjetIYvte0c8t65Tvu6h3ADf5t3bZuOcdM/xpaptmHxtGjR7HZbK7pgIAAdu7cafrx1zciCGamPdSY0uQitWvn75b1/r/fveKW9cp33NU7gJxHsty2bjmnKfrX7K9pOJ1OLJbvks8wjPOmRUTEc5p9aAQGBmK3213TdrudgIAAL1YkInLlavahcdddd/Hpp59SUVHBmTNnWLt2LeHh4d4uS0TkitTsr2nceOONjBkzhpSUFOrq6nj44Ye54447vF2WiMgVyWIYhuHtIkRE5NLQ7E9PiYhI86HQEBER0xQaIiJimkJDRERMU2g0IzNnzmT79u1u305ZWRl9+vRx+3auNO7uX319PVlZWcTGxtKvXz/efvttt23rSuKJvo0bN47Y2Fji4uL44IMP3LYtT1BoNCOFhYXU19e7dRubN28mJSXlvBsmpWm4u3/Lly/nxIkTrFy5knfffZfc3Fz++c9/um17Vwp3923lypU4HA5WrVrFwoULmThxIg6Hw23bc7dmf5/G5eibb77h+eef5/Tp0/j4+JCZmUlJSQnFxcVkZmYya9YsTp48yYwZM6iurubUqVOkpaVx//33ux578uRJunTpQmFhIR9//DFVVVVMmDCBvXv3Ul9fz1NPPUVsbOwF287Ly+P1118nLi7OC3t+efBW/zp37kz37t3x8fHhqquuIjg4mCNHjtCtWzcv/SYuLd7qW3x8vOv5dvToUVq2bEnLli298StoGoZ43Ouvv27Mnz/fMAzD2Lx5s/HnP//ZMAzDeOyxx4zPPvvMMAzDGDVqlPHvf//bMAzD2Lp1qxEbG2sYhmGMHDnSWLx4sWEYhrF27VqjS5cuhmEYxrRp04yFCxcahmEYlZWVRr9+/Yz//Oc/P1rDfx8njdcc+ldUVGSEhYUZJ06ccMMeXp683bf09HSjW7duxmuvveamPfQMHWl4Qe/evRk1ahS7du0iIiKCxx577IJlpk2bxsaNGykoKGDHjh1UVVUBsGXLFiZPngxAZGQk11xzDXDuI+Srq6t57733ADh9+jR79+4lODjYQ3t15fB2/woLCxkzZgw5OTlce+217trNy463+zZp0iSef/55Bg0axJ133nnJXldUaHhBz549+fDDD9m0aROrV6/m/fffZ8GCBectk5SURK9evejVqxe9e/fm+eefB6BFixYYP3ATv9PpZNq0aa5TFeXl5fqD4ibe7N/atWsZP348M2bMoFevXm7Yu8uXt/pWXFyMv78/N910E9dffz2//vWv2bNnzyUbGroQ7gVTp05l5cqVxMfHM27cOL766ivg3H/M+vp6Tpw4QUlJCc888wzh4eGsX7/edaGud+/erndfbN68mVOnTgEQFhbGX/7yF+DcedMHH3yQI0eOeGHvLn/e6t/OnTsZP348b731lgLjInirbzt27GDatGk4nU4cDgeffPIJd955p6d2u8nps6e84MiRIzz33HNUVVXRokULnn76ae6++27efPNN3nnnHV555RXWrFnD+vXrsVqthIWF8dFHH7Fx40YqKyv5wx/+wIkTJ+jatSvr16+nsLAQh8PB+PHj2b17N/X19QwdOpT4+PgfreHWW29lz549Htzry4e3+jd8+HC++OILAgMDXWNPP/009913n6d/BZckb/Wtvr6e7OxsioqK8PHxITk5mYEDB3rpt9AEvHpFRRpt4cKFxt69ew3DMIzi4mIjPj7eyxVJY6h/lyb17Tu6pnGJ6dChA88++yw+Pj74+fnx0ksvebskaQT179Kkvn1Hp6dERMQ0XQgXERHTFBoiImKaQkNERExTaIi4wZAhQ6ioqPB2GSJNTqEh4gZbtmzxdgkibqG33Ir8DFVVVaSlpXHgwAF8fHzo1q2b6y7ixx9/nHnz5rF7927mzp1LbW0tFRUVPPTQQ4wePRqAefPmkZeXx9VXX01oaCjr169nw4YN1NbWkpOT4/rY7l/+8pdkZmbi7+/vxb0V0ZGGyM+ybt06qqqqyM/PJy8vD4Df/e53ACxcuJDAwEDeeustpkyZwvLly1m2bBnz5s2joqKCv/3tbyxfvpy8vDyWL1/u+nA8OBcmLVq0YPny5axcuZKAgABycnK8so8i/0tHGiI/Q8+ePZkxYwaDBg3irrvu4vHHH6dDhw6u+RaLhTfeeINNmzaxatUqvv76awzD4MyZM2zevJno6GjXJ6YmJyfz2WefAbBp0yYqKyvZunUrAHV1dbRr187zOyjyPQoNkZ8hODiYdevW8fnnn/PZZ58xePBgJkyY4Jp/+vRp4uPjuf/++wkNDWXAgAH89a9/xTAMrFbreZ+c2qJFC9fPTqeT9PR0IiIigHOnwWpqajy3YyI/QqenRH6GpUuXkpaWRp8+fUhNTaVPnz589dVXtGjRgrNnz3LgwAEcDgejR4/m3nvv5fPPP6e2than00lERARr166lsrISwHV6C6BPnz4sWbLEteyLL77I9OnTvbWbIi460hD5GR566CG2bdtGTEwMrVu3pn379gwaNIh9+/YxaNAgXnvtNe6++24eeOABfH196dKlC7fccgsHDhzg17/+NY8++ii/+c1vaNWqFZ07d6Z169YA/P73v+eVV14hPj6e+vp6brvtNsaOHevlvRXRZ0+JeM0//vEPvvzyS1JSUgBYsGABO3bs4I9//KN3CxP5CQoNES9xOBykp6ezb98+LBYL7du356WXXuLGG2/0dmkiP0qhISIipulCuIiImKbQEBER0xQaIiJimkJDRERMU2iIiIhpCg0RETHt/wMZUyaU+/V+IwAAAABJRU5ErkJggg==\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"\n",
"temp=df[\"stage\"].value_counts()\n",
"temp_df=pd.DataFrame({'stage':temp.index,'values':temp.values})\n",
"print(sns.barplot(x='stage',y='values',data=temp_df))"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "83a824cf",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"AxesSubplot(0.125,0.125;0.775x0.755)\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAb0AAAEJCAYAAAAAdfknAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy6AAAACXBIWXMAAAsTAAALEwEAmpwYAAA5MElEQVR4nO3deVxU5f4H8M/s7Is4LCJuqGDgvpuJWuKKJJk/tTDtmrZ5NU0zJTW1XMIyKyvLbLXiKoq5oZXpTb1a5ppLbriADIOyDTDMdn5/cOe5EN0EroB0Pu/Xy5fMzPnOec4y53POc86cUUiSJIGIiEgGlHXdACIiotrC0CMiItlg6BERkWww9IiISDYYekREJBsMPSIikg2GHhERyYa6rhtwp+TkFMLh4FcOiYgqQ6lUwNfXva6bUev+MqHncEgMPSIi+lPs3iQiItlg6BERkWww9IiISDYYekREJBsMPSIiko0avXrz7bffxo4dOwAAUVFRmDVrFl588UUcOXIErq6uAIBnn30WAwYMwJkzZzB37lwUFhaiS5cuePnll6FW/2UuLiUiortAjaXKgQMH8OOPP2LTpk1QKBSYOHEidu/ejVOnTuHzzz+Hv79/ueFnzpyJxYsXo0OHDpgzZw6SkpIwduzYmmoeERHJUI2Fnl6vx+zZs6HVagEAoaGhyMjIQEZGBubMmQODwYABAwbg2WefxY0bN2A2m9GhQwcAQFxcHFatWlXl0Gvg7QKVVlPp4e0WK27lmf/nWl9vLdRaXaVrbZYS5ORZ/udaH28tNFWoBQCrpQS5znofDT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k+eDIPBgL59++KXX36pjbYRERHdUbcNveXLl+Pjjz+Gj48PAgMDsXz58grfwSMiIqoPbht6ZrMZLVu2FI+joqJgt9trtFFEREQ14bahp1arkZeXJ74wfunSpRpvFBERUU247YUsTz31FB599FFkZ2dj+vTp2L9/PxYuXFgbbSMiIrqjbht6/fr1Q4sWLbB//344HA4888wzCA0NrY22ERER3VG3Db3c3Fx4e3tjyJAh5Z7z8fGpyXYRERHdcbcNvR49elS4AbRer8e+fftqrFFEREQ14bahd/bsWfG3xWLB1q1bcfny5RptFBERUU2o0o/IarVaxMXFVetXFoiIiOpapc7pOUmShFOnTiE/P78m20RERFQjKn1OT5IkAICfnx/mzp1b4w0jIiK606p0To+IiKg++6+ht27duj8tnDBhwh1vDBERUU36r6H322+/1WY7iIiIatx/Db0lS5bUZjuIiIhq3G3P6R09ehRr1qxBUVERJEmCw+HA9evX8cMPP9RC84iIiO6c235PLyEhAR07doTJZEJMTAw8PDwQHR1dG20jIiK6o257pKdQKDBp0iTk5OSgRYsWiImJwUMPPVQbbSMiIrqjbnuk5+bmBgBo0qQJzp8/DxcXFyiVVbqRCxER0V3htkd67du3x7Rp0zB16lRMnjwZaWlpUKtvW0ZERHTXue0hW1ZWFsLCwtC8eXPMnTsXDocDK1asqI22ERER3VG3Db0ePXpgz549GDBgAM6ePYsnnngCLVq0qI22ERER3VG3Db0xY8YgKSkJ7733HvLy8jB69Gg888wztdE2IiKiO6rSV6SYzWZYLBZIkgSVSlWTbSIiIqoRt70iZd26dUhOTobFYsHIkSORlJSEhg0b1kbbiIiI7qjbht6pU6eQkJCA7t2710Z7iIiIasxtQ49XahIR0V8Fv2VORESywdAjIiLZYOgREZFs1GjomUwmDBs2DNevXwcAHDhwADExMYiOjsYbb7whhjtz5gzi4uIwcOBAzJ07FzabrSabRUREMlVjoXf8+HGMGTMGaWlpAEq/5zdnzhysXr0a27dvx6lTp7B3714AwMyZMzFv3jykpqZCkiQkJSXVVLOIiEjGaiz0kpKSMH/+fPj7+wMATpw4gaZNmyIkJARqtRoxMTHYuXMn0tPTYTab0aFDBwBAXFwcdu7cWVPNIiIiGauxn0t45ZVXyj3OysqCXq8Xj/39/WEwGCo8r9frYTAYaqpZREQkY7X2G0EOhwMKhUI8liQJCoXivz5fVX5+HtVql17vWa26+lpbl+PmNNeP2rocd32srctx/y+11d1m1ne1dvVmYGAgjEajeGw0GuHv71/h+ezsbNElWhU3b5qq1S6jsQBGY4Fsauty3Jzm+lFbl+Ou69r62u7qqO42s76rtdBr3749Ll++jCtXrsBut2Pr1q3o06cPgoODodPpcOTIEQBASkoK+vTpU1vNIiIiGam17k2dToelS5diypQpKCkpQVRUFAYNGgQASExMREJCAkwmEyIiIjBu3LjaahYREclIjYfe999/L/7u2bMntmzZUmGY8PBwbNiwoaabQkREMsc7shARkWww9IiISDYYekREJBsMPSIikg2GHhERyQZDj4iIZIOhR0REssHQIyIi2WDoERGRbDD0iIhINhh6REQkGww9IiKSDYYeERHJBkOPiIhkg6FHRESywdAjIiLZYOgREZFsMPSIiEg2GHpERCQbDD0iIpINhh4REckGQ4+IiGSDoUdERLLB0CMiItlg6BERkWww9IiISDYYekREJBsMPSIikg2GHhERyQZDj4iIZIOhR0REssHQIyIi2WDoERGRbKjrYqTx8fG4desW1OrS0S9cuBCFhYVYsmQJSkpKMHjwYDz33HN10TQiIvoLq/XQkyQJaWlp2LNnjwg9s9mMQYMG4bPPPkNQUBAmT56MvXv3IioqqrabR0REf2G1HnqXLl0CADz++OPIzc3FqFGj0Lp1azRt2hQhISEAgJiYGOzcuZOhR0REd1Sth15+fj569uyJl156CVarFePGjcPEiROh1+vFMP7+/jAYDFV6Xz8/j2q1R6/3rFZdfa2ty3FzmutHbV2Ouz7W1uW4/5fa6m4z67taD72OHTuiY8eO4vHIkSOxatUqdO7cWTwnSRIUCkWV3vfmTVO1FqLRWACgeitPfayty3FzmutHbV2Ou65r63LctV1b3W1mfVfrV2/+/PPPOHjwoHgsSRKCg4NhNBrFc0ajEf7+/rXdNCIi+our9dArKCjA8uXLUVJSApPJhE2bNmH69Om4fPkyrly5Arvdjq1bt6JPnz613TQiIvqLq/XuzX79+uH48eN48MEH4XA4MHbsWHTs2BFLly7FlClTUFJSgqioKAwaNKi2m0ZERH9xdfI9vWnTpmHatGnlnuvZsye2bNlSF80hIiKZ4B1ZiIhINhh6REQkGww9IiKSDYYeERHJBkOPiIhkg6FHRESywdAjIiLZYOgREZFsMPSIiEg2GHpERCQbDD0iIpINhh4REckGQ4+IiGSDoUdERLLB0CMiItlg6BERkWww9IiISDYYekREJBsMPSIikg2GHhERyQZDj4iIZIOhR0REssHQIyIi2WDoERGRbDD0iIhINhh6REQkGww9IiKSDYYeERHJBkOPiIhkg6FHRESywdAjIiLZYOgREZFs3FWh980332DIkCGIjo7GF198UdfNISKivxh1XTfAyWAw4I033kBycjK0Wi1Gjx6N7t27o2XLlnXdNCIi+ou4a0LvwIED6NGjB3x8fAAAAwcOxM6dO/Hss89Wql6pVJT+7+lepfE660prvatdq/b0r3atzqP6ta5VrP19vbtHQLVrvdyrX+vrVv1af1e/KtVWqHer/nL2d/P4H2qrv276u7lWu1bv5lKl2or1mmrXerupql3r5la1jqhynyn36tcCgMaz+vUqr6ptVsttg7y01a/1rP46IicKSZKkum4EALz//vsoKirCc889BwD4xz/+gRMnTmDRokV13DIiIvqruGvO6TkcDigU/9nzkCSp3GMiIqL/1V0TeoGBgTAajeKx0WiEv3/Vu+6IiIj+m7sm9Hr16oWDBw/i1q1bKC4uxq5du9CnT5+6bhYREf2F3DUXsgQEBOC5557DuHHjYLVaMXLkSLRr166um0VERH8hd82FLERERDXtruneJCIiqmkMPSIikg2GHhERyQZDj4iIZKPGQy8sLOy2w6xatQp9+/bFunXrcOjQIXTs2BGxsbEYPnw4Bg8ejE8++eQP63766SeEh4cjKioK9957L7p164b+/ftj1apV5Ya7fv06wsLCMHPmTABAbGws4uPj0b9/f1y/fr3ccJGRkYiNjUVsbCxiYmLQv39/LF68GJGRkYiOjka3bt0wePBgrF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oNBqMHDkSarUaarUaK1euZOAR3cV4pEdERLLBC1mIiEg2GHpERCQbDD0iIpINhh4REckGQ4+IiGSDoUdERLLx/yCZZtbDlS1EAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"\n",
"temp=df[\"prognosis\"].value_counts()\n",
"temp_df=pd.DataFrame({'prognosis':temp.index,'values':temp.values})\n",
"print(sns.barplot(x='prognosis',y='values',data=temp_df))"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "73c521b0",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"prognosis object\n",
"stage object\n",
"medication object\n",
"dtype: object\n"
]
}
],
"source": [
"df.dtypes"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "c98c2074",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "20d5db197ec04e3cb361296b66223a6c",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Button(description='Toggle Pandas/Lux', layout=Layout(top='5px', width='140px'), style=ButtonStyle())"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f05e009789284fcfa0aec441ae98a9db",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from sklearn import preprocessing\n",
"\n",
"df_enco=df.apply(preprocessing.LabelEncoder().fit_transform)\n",
"df_enco"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "fdf8abc0",
"metadata": {},
"outputs": [],
"source": [
"df_enco.to_csv(\"poultry_predicton.csv\")"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "5c010b6b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "exec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ej67ZGeTNifJ9mJEye0HbP6+uGHH8SePXuEEEI8ePBAeHl5iYsXL1ZneH8bW7ZsEZcuXRJCCHH+/Hnh5eVl4oiIyjObmpqhWrZsiTVr1iAiIgJCCLzzzjto27atqcMyS88++yymT58OCwsLWFtbIzg42NQhEZXDqYeISFbMZqCAiEgKJjUikhUmNSKSFSY1IpIVJjUikpX/B15F72teN+egAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 360x360 with 2 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"plt.figure(figsize=(5,5))\n",
"corr=df_enco.corr()\n",
"sns.heatmap(corr,annot=True)"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "b685600b",
"metadata": {},
"outputs": [],
"source": [
"x=df_enco.drop([\"medication\"],axis=1)\n",
"y=df_enco[\"medication\"]"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "f070da1c",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Counter({56: 84, 15: 84, 22: 84, 47: 84, 65: 84, 4: 84, 51: 84, 35: 84, 33: 84, 27: 84, 2: 84, 64: 84, 61: 84, 53: 84, 40: 84, 1: 84, 54: 84, 23: 84, 29: 84, 45: 84, 21: 84, 31: 84, 49: 84, 9: 84, 46: 84, 6: 84, 36: 84, 13: 84, 39: 84, 59: 84, 19: 84, 10: 84, 60: 84, 14: 84, 20: 84, 7: 84, 24: 84, 48: 84, 41: 84, 12: 84, 5: 84, 44: 84, 11: 84, 8: 84, 26: 84, 16: 84, 55: 84, 52: 84, 63: 84, 37: 84, 42: 84, 30: 84, 38: 84, 17: 84, 34: 84, 32: 84, 50: 84, 3: 84, 0: 84, 43: 84, 57: 84, 62: 84, 18: 84, 58: 84, 28: 84, 25: 84})\n"
]
}
],
"source": [
"from imblearn.over_sampling import RandomOverSampler\n",
"from imblearn.under_sampling import RandomUnderSampler\n",
"from collections import Counter\n",
"\n",
"print(Counter(y))"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "1a8452c6",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Counter({56: 84, 15: 84, 22: 84, 47: 84, 65: 84, 4: 84, 51: 84, 35: 84, 33: 84, 27: 84, 2: 84, 64: 84, 61: 84, 53: 84, 40: 84, 1: 84, 54: 84, 23: 84, 29: 84, 45: 84, 21: 84, 31: 84, 49: 84, 9: 84, 46: 84, 6: 84, 36: 84, 13: 84, 39: 84, 59: 84, 19: 84, 10: 84, 60: 84, 14: 84, 20: 84, 7: 84, 24: 84, 48: 84, 41: 84, 12: 84, 5: 84, 44: 84, 11: 84, 8: 84, 26: 84, 16: 84, 55: 84, 52: 84, 63: 84, 37: 84, 42: 84, 30: 84, 38: 84, 17: 84, 34: 84, 32: 84, 50: 84, 3: 84, 0: 84, 43: 84, 57: 84, 62: 84, 18: 84, 58: 84, 28: 84, 25: 84})\n"
]
}
],
"source": [
"ros = RandomOverSampler()\n",
"x_ros, y_ros = ros.fit_resample(x,y)\n",
"print(Counter(y_ros))"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "d9f01102",
"metadata": {},
"outputs": [],
"source": [
"scaler=MinMaxScaler((0,1))\n",
"x=scaler.fit_transform(x_ros)\n",
"y=y_ros"
]
},
{
"cell_type": "code",
"execution_count": 18,
"id": "9af9faed",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
" <script type=\"text/javascript\">\n",
" window.PlotlyConfig = {MathJaxConfig: 'local'};\n",
" if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: \"STIX-Web\"}});}\n",
" if (typeof require !== 'undefined') {\n",
" require.undef(\"plotly\");\n",
" requirejs.config({\n",
" paths: {\n",
" 'plotly': ['https://cdn.plot.ly/plotly-2.12.1.min']\n",
" }\n",
" });\n",
" require(['plotly'], function(Plotly) {\n",
" window._Plotly = Plotly;\n",
" });\n",
" }\n",
" </script>\n",
" "
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"(5544, 2)\n",
"(5544, 1)\n"
]
}
],
"source": [
"import plotly.offline as py\n",
"py.init_notebook_mode(connected=True)\n",
"import plotly.graph_objs as go\n",
"import plotly.tools as tls\n",
"from sklearn.decomposition import PCA\n",
"\n",
"pca = PCA(.100)\n",
"X_PCA=pca.fit_transform(x)\n",
"\n",
"print(x.shape)\n",
"print(X_PCA.shape)"
]
},
{
"cell_type": "code",
"execution_count": 19,
"id": "0ad6d4ee",
"metadata": {},
"outputs": [],
"source": [
"#from sklearn.model_selection import train_test_split\n",
"#x_train,x_test,y_train,y_test=train_test_split(X_PCA,y,test_size=0.2,random_state=145)"
]
},
{
"cell_type": "code",
"execution_count": 20,
"id": "90afdad7",
"metadata": {},
"outputs": [],
"source": [
"import keras\n",
"from keras.models import Sequential\n",
"from keras.layers import Dense\n",
"from keras.layers import Dropout\n",
"from keras.callbacks import ModelCheckpoint,EarlyStopping\n",
"from keras.models import Sequential, Model\n",
"from tensorflow.keras.optimizers import Adam\n",
"from sklearn.model_selection import KFold"
]
},
{
"cell_type": "code",
"execution_count": 21,
"id": "5c292d3d",
"metadata": {},
"outputs": [],
"source": [
"def model():\n",
" classifier = Sequential()\n",
" classifier.add(Dense(1, input_shape = (x_train.shape[1],), activation='relu'))\n",
" classifier.add(Dropout(0.2))\n",
" classifier.add(Dense(1,activation='relu'))\n",
" classifier.add(Dropout(0.4))\n",
" classifier.add(Dense(1,activation = 'sigmoid'))\n",
" classifier.compile(optimizer = 'adam',loss='binary_crossentropy', metrics =['accuracy'])\n",
" return classifier"
]
},
{
"cell_type": "code",
"execution_count": 22,
"id": "f4268e48",
"metadata": {},
"outputs": [],
"source": [
"x_train.shape[1]"
]
},
{
"cell_type": "code",
"execution_count": 23,
"id": "5d86edab",
"metadata": {},
"outputs": [],
"source": [
"model=model()\n",
"model.summary()"
]
},
{
"cell_type": "code",
"execution_count": 24,
"id": "0c524738",
"metadata": {},
"outputs": [],
"source": [
"history = model.fit(x_train,y_train,validation_data=(x_test,y_test),epochs=5,verbose=1)"
]
},
{
"cell_type": "code",
"execution_count": 25,
"id": "031735a6",
"metadata": {},
"outputs": [],
"source": [
"\n",
"x_train, x_test, y_train, y_test = train_test_split(x, y, test_size=0.2, stratify=y, random_state=2)"
]
},
{
"cell_type": "code",
"execution_count": 26,
"id": "cb990654",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(5544, 2) (4435, 2) (1109, 2)\n"
]
}
],
"source": [
"print(x.shape, x_train.shape, x_test.shape)"
]
},
{
"cell_type": "code",
"execution_count": 27,
"id": "6fc205e5",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<style>#sk-container-id-1 {color: black;background-color: white;}#sk-container-id-1 pre{padding: 0;}#sk-container-id-1 div.sk-toggleable {background-color: white;}#sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-1 label.sk-toggleable__label-arrow:before {content: \"▸\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-1 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"▾\";}#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-1 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-1 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-1 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-1 div.sk-item {position: relative;z-index: 1;}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-1 div.sk-item::before, #sk-container-id-1 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-1 div.sk-label-container {text-align: center;}#sk-container-id-1 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-1 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-1\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>LogisticRegression()</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-1\" type=\"checkbox\" checked><label for=\"sk-estimator-id-1\" class=\"sk-toggleable__label sk-toggleable__label-arrow\">LogisticRegression</label><div class=\"sk-toggleable__content\"><pre>LogisticRegression()</pre></div></div></div></div></div>"
],
"text/plain": [
"LogisticRegression()"
]
},
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from sklearn.linear_model import LogisticRegression\n",
"model = LogisticRegression()\n",
"model.fit(x_train, y_train)"
]
},
{
"cell_type": "code",
"execution_count": 28,
"id": "4a7ae5a9",
"metadata": {},
"outputs": [],
"source": [
"x_train_prediction = model.predict(x_train)\n",
"training_data_accuracy = accuracy_score(x_train_prediction, y_train)"
]
},
{
"cell_type": "code",
"execution_count": 29,
"id": "0b067bb3",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Accuracy on Training data : 0.25839909808342726\n"
]
}
],
"source": [
"print('Accuracy on Training data : ', training_data_accuracy)"
]
},
{
"cell_type": "code",
"execution_count": 30,
"id": "d9b1cd8b",
"metadata": {},
"outputs": [],
"source": [
"x_test_prediction = model.predict(x_test)\n",
"test_data_accuracy = accuracy_score(x_test_prediction, y_test)"
]
},
{
"cell_type": "code",
"execution_count": 31,
"id": "051305d7",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Accuracy on Test data : 0.25428313796212804\n"
]
}
],
"source": [
"\n",
"print('Accuracy on Test data : ', test_data_accuracy)"
]
},
{
"cell_type": "code",
"execution_count": 33,
"id": "f99fa1c5",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[11]\n",
"The Person has Heart Disease\n"
]
}
],
"source": [
"input_data = (2,1)\n",
"\n",
"# change the input data to a numpy array\n",
"input_data_as_numpy_array= np.asarray(input_data)\n",
"\n",
"# reshape the numpy array as we are predicting for only on instance\n",
"input_data_reshaped = input_data_as_numpy_array.reshape(1,-1)\n",
"\n",
"prediction = model.predict(input_data_reshaped)\n",
"print(prediction)\n",
"\n",
"if (prediction[0]== 0):\n",
" print('The Person does not have a Heart Disease')\n",
"else:\n",
" print('The Person has Heart Disease')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment